Fixed a bug where channel modes would crash the bot and cleaned up excess whitespace
This commit is contained in:
parent
97a20675ca
commit
0460e401b7
1 changed files with 34 additions and 34 deletions
|
@ -282,7 +282,7 @@ class Logbot(SingleServerIRCBot):
|
|||
def on_mode(self, c, e):
|
||||
self.write_event("mode", e,
|
||||
{"%modes%" : e.arguments()[0],
|
||||
"%person%" : e.arguments()[1],
|
||||
"%person%" : e.arguments()[1] if len(e.arguments()) > 1 else "",
|
||||
"%giver%" : nm_to_n(e.source()),
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue