]> git.babelmonkeys.de Git - mpdbot.git/commitdiff
Eliminate of_log usage.
authorFlorian Zeitz <florob@babelmonkeys.de>
Thu, 22 Dec 2011 20:09:11 +0000 (21:09 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Thu, 22 Dec 2011 20:09:11 +0000 (21:09 +0100)
src/mpdbot.m

index 84f864deb653e58f4fa2ef7929dc792d0120cfa8..8268e44b4a74a7799c6f71f40f9800020d65f559 100644 (file)
@@ -61,7 +61,7 @@ OF_APPLICATION_DELEGATE(AppDelegate)
                [conn connect];
                [conn handleConnection];
        } @catch (id e) {
-               of_log(@"%@", e);
+               [of_stderr writeFormat: @"%@\n", e];
        }
 }
 
@@ -114,17 +114,12 @@ OF_APPLICATION_DELEGATE(AppDelegate)
                                return YES;
                        }
                }
+               [of_stderr writeLine: @"Server does NOT support PEP"];
        }
 
        return NO;
 }
 
--  (void)connection: (XMPPConnection*)conn
-  didReceiveMessage: (XMPPMessage*)msg
-{
-       of_log(@"Message: %@", msg);
-}
-
 -   (void)connection: (XMPPConnection*)conn
   didReceivePresence: (XMPPPresence*)pres
 {