diff MoinMoin/jabber/xmppbot.py @ 2088:a99ed13fec1e

Introduce a shared secret for wiki-bot communication + some code style fixes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 03 Jun 2007 19:44:56 +0200
parents d72f126157f7
children 4ec961fd40d9
line wrap: on
line diff
--- a/MoinMoin/jabber/xmppbot.py	Sun Jun 03 19:40:58 2007 +0200
+++ b/MoinMoin/jabber/xmppbot.py	Sun Jun 03 19:44:56 2007 +0200
@@ -21,6 +21,7 @@
 
 from xmlrpcbot import NotificationCommand
 
+
 class Contact:
     """Abstraction of a roster item / contact
  
@@ -217,7 +218,7 @@
             contact = self.contacts[bare_jid]
             
             if self.config.verbose:
-                self.log(str(contact) + ", going OFFLINE.")
+                self.log("%s, going OFFLINE." % contact)
             
             try:
                 # Send queued messages now, as we can't guarantee to be