Bot name without text makes it crash

Bug #498552 reported by Facundo Batista
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lalita
Fix Released
High
Héctor Sanchez

Bug Description

For example, if the bot is called "examplia", you write "examplia,", and...

        Traceback (most recent call last):
          File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 463, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.6/dist-packages/twisted/words/protocols/irc.py", line 1705, in dataReceived
            basic.LineReceiver.dataReceived(self, data.replace('\r', ''))
          File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 231, in dataReceived
            why = self.lineReceived(line)
          File "/usr/lib/python2.6/dist-packages/twisted/words/protocols/irc.py", line 1713, in lineReceived
            self.handleCommand(command, prefix, params)
        --- <exception caught here> ---
          File "/usr/lib/python2.6/dist-packages/twisted/words/protocols/irc.py", line 1725, in handleCommand
            method(prefix, params)
          File "/usr/lib/python2.6/dist-packages/twisted/words/protocols/irc.py", line 1257, in irc_PRIVMSG
            self.privmsg(user, channel, message)
          File "ircbot.py", line 162, in privmsg
            msg = msg[1:].strip()
        exceptions.IndexError: string index out of range

Changed in lalita:
milestone: none → alpha
importance: Undecided → High
status: New → Confirmed
Changed in lalita:
assignee: nobody → Héctor Sanchez (hsanchez)
status: Confirmed → Fix Committed
Changed in lalita:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.