X-Git-Url: http://cgit.babelmonkeys.de/?p=jubjub.git;a=blobdiff_plain;f=src%2Fgui%2Fcli%2FJubCLIUI.m;h=bcae48044ff354aec8d4dc68593bf161ea652f0c;hp=9a62767523424477fe6866e22c479130343386a0;hb=ea2a5ae3a666ef7c37949bf8bd7b18cb9c11c2d8;hpb=ee13e689c5b723dfd93e6aab0cd9bc1d9992d65e diff --git a/src/gui/cli/JubCLIUI.m b/src/gui/cli/JubCLIUI.m index 9a62767..bcae480 100644 --- a/src/gui/cli/JubCLIUI.m +++ b/src/gui/cli/JubCLIUI.m @@ -298,7 +298,7 @@ static void completionCallback(OFString *buf, OFList *lc) forKey: command.command]; } -- (BOOL)Jub_userInputWithStream: (OFStream*)stream +- (bool)Jub_userInputWithStream: (OFStream*)stream line: (OFString*)line exception: (OFException*)exception { @@ -306,18 +306,18 @@ static void completionCallback(OFString *buf, OFList *lc) [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]; @@ -359,7 +359,7 @@ static void completionCallback(OFString *buf, OFList *lc) [of_stdout writeFormat: @"- %@\n", command.help]; }; - return YES; + return true; } id command = _commands[input[0]]; @@ -368,12 +368,12 @@ static void completionCallback(OFString *buf, OFList *lc) [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