X-Git-Url: http://cgit.babelmonkeys.de/?p=mpdbot.git;a=blobdiff_plain;f=src%2Fmpdbot.m;h=f55e4b77ec3b23f6cd8e7130b46cba15a8bab010;hp=d5273a8655c30547d6938924778d820e728b0763;hb=811f94951f504cabc7f12091bd0f0fdca6ab6240;hpb=24d30f68a87e502770a56745ca22e6c4b8af9787 diff --git a/src/mpdbot.m b/src/mpdbot.m index d5273a8..f55e4b7 100644 --- a/src/mpdbot.m +++ b/src/mpdbot.m @@ -49,7 +49,8 @@ OF_APPLICATION_DELEGATE(AppDelegate) [conn setDelegate: self]; if ([arguments count] != 3) { - of_log(@"Invalid count of command line arguments!"); + [of_stdout writeFormat: @"Usage: %@ \n", + [OFApplication programName]]; [OFApplication terminateWithStatus: 1]; } @@ -68,7 +69,7 @@ OF_APPLICATION_DELEGATE(AppDelegate) - (void)connectionWasAuthenticated: (XMPPConnection*)conn { - of_log(@"Auth successful"); + [of_stdout writeLine: @"Auth successful"]; } - (void)connection: (XMPPConnection*)conn @@ -77,7 +78,7 @@ OF_APPLICATION_DELEGATE(AppDelegate) XMPPPresence *pres; XMPPIQ *disco; - of_log(@"Bound to JID: %@", [jid fullJID]); + [of_stdout writeFormat: @"Bound to JID: %@\n", [jid fullJID]]; pres = [XMPPPresence presence]; [pres addPriority: 0]; @@ -133,6 +134,6 @@ OF_APPLICATION_DELEGATE(AppDelegate) - (void)connectionWasClosed: (XMPPConnection*)conn { - of_log(@"Connection was closed!"); + [of_stdout writeLine: @"Connection was closed!"]; } @end