changeset 2076:0128bbaf0172

Add newlines at the end of files, fix some overzealous deletion.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 01 Jun 2007 21:18:01 +0200
parents d6ab26230e23
children 636e646f909b
files MoinMoin/events/EmailNotification.py MoinMoin/events/__init__.py MoinMoin/jabber/__init__.py MoinMoin/jabber/xmppbot.py
diffstat 4 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/EmailNotification.py	Fri Jun 01 01:53:01 2007 +0200
+++ b/MoinMoin/events/EmailNotification.py	Fri Jun 01 21:18:01 2007 +0200
@@ -78,4 +78,4 @@
     if not event.request.cfg.mail_enabled:
         return
     
-    return notifySubscribers(event.request, event.page, event.comment, event.trivial)
\ No newline at end of file
+    return notifySubscribers(event.request, event.page, event.comment, event.trivial)
--- a/MoinMoin/events/__init__.py	Fri Jun 01 01:53:01 2007 +0200
+++ b/MoinMoin/events/__init__.py	Fri Jun 01 21:18:01 2007 +0200
@@ -94,4 +94,4 @@
         if isinstance(retval, unicode):
             msg.append(retval)
             
-    return msg
\ No newline at end of file
+    return msg
--- a/MoinMoin/jabber/__init__.py	Fri Jun 01 01:53:01 2007 +0200
+++ b/MoinMoin/jabber/__init__.py	Fri Jun 01 21:18:01 2007 +0200
@@ -8,4 +8,4 @@
 
 @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
 @license: GNU GPL, see COPYING for details.
-"""
\ No newline at end of file
+"""
--- a/MoinMoin/jabber/xmppbot.py	Fri Jun 01 01:53:01 2007 +0200
+++ b/MoinMoin/jabber/xmppbot.py	Fri Jun 01 21:18:01 2007 +0200
@@ -46,7 +46,7 @@
     def run(self):
         """Start the bot - enter the event loop"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Starting the jabber bot.")
             
         self.connect()
@@ -88,7 +88,7 @@
     def handle_message(self, message):
         """Handles incoming messages"""
         
-        if self.config:
+        if self.config.verbose:
             self.log( "Received a message from %s." % (message.get_from_jid().as_utf8(),) )
             
         text = message.get_body()
@@ -133,13 +133,13 @@
     def authenticated(self):
         """Called when authentication succeedes"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Authenticated.")
             
     def authorized(self):
         """Called when authorization succeedes"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Authorized.")
         
         stream = self.get_stream()
@@ -156,19 +156,19 @@
     def connected(self):
         """Called when connections has been established"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Connected.")
             
     def disconnected(self):
         """Called when disconnection occurs"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Disconnected.")
             
     def roster_updated(self, item = None):
         """Called when roster gets updated"""
         
-        if self.config:
+        if self.config.verbose:
             self.log("Updating roster.")
             
  #   def session_started(self):