home · contact · privacy
Fix previous fix.
[plomlombot-irc.git] / plomlombot.py
index 0012baffd9a94ced7e54a09073fa606466bc8064..4c44cf4a525d2c7955af0f38cd08aa795b0c729c 100755 (executable)
@@ -74,8 +74,8 @@ class Log:
         identity = ""
         separator = " > "
         if sent:
-            separator = " "
-            line = Line(line)
+            separator = " "
+            line = Line("< " + line)
             line.sender = self.nickname
             identity = self.username + "@localhost"
         else:
@@ -488,7 +488,7 @@ class Session:
                         notice("maximum number of urls to parse per message "
                                "reached")
                         break
-            if "!" == msg[0]:
+            if "!" == msg[0] and len(msg) > 1:
                 tokens = msg[1:].split()
                 argument = str.join(" ", tokens[1:])
                 handle_command(tokens[0], argument, notice, target, self)