Changeset 701 for tools

Show
Ignore:
Timestamp:
11/04/07 14:24:23 (14 months ago)
Author:
michiel
Message:

simplify say_it function

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/nsa/nsa.py

    r698 r701  
    219219        def say_it(self, text): 
    220220                lines = text.split("\n") 
    221                 if len(lines) > 1: 
    222                         for line in lines: 
    223                                 self.connection.privmsg(self.channel, line) 
    224                 else: 
    225                         self.connection.privmsg(self.channel, text) 
     221                for line in lines: 
     222                        self.connection.privmsg(self.channel, line) 
    226223 
    227224        def start(self):