forKey: command.command];
}
-- (BOOL)Jub_userInputWithStream: (OFStream*)stream
+- (bool)Jub_userInputWithStream: (OFStream*)stream
line: (OFString*)line
exception: (OFException*)exception
{
[OFApplication terminate];
if ([line length] == 0)
- return YES;
+ return true;
if ([line characterAtIndex: 0] != ':') {
if (_sink == nil) {
[of_stdout writeLine: @"No default sink selected, "
@"type `:h` for help"];
- return YES;
+ return true;
}
[_sink send: line];
- return YES;
+ return true;
}
line = [line stringByDeletingTrailingWhitespaces];
[of_stdout writeFormat: @"- %@\n", command.help];
};
- return YES;
+ return true;
}
id<JubCLICommand> command = _commands[input[0]];
[command callWithParameters:
[input arrayByRemovingObject: [input firstObject]]];
- return YES;
+ return true;
}
[of_stdout writeLine: @"Invalid command, type `:h` for help"];
- return YES;
+ return true;
}
- (void)contactManager: (XMPPContactManager*)manager