Fixed a bug if mode change had extra arguments it would crash on unpacking the values
This commit is contained in:
parent
1a8adb1529
commit
399ccb25ec
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class LogBot(SingleServerIRCBot):
|
|||
.replace("%reason%", reason))
|
||||
|
||||
def on_mode(self, c, e):
|
||||
modes, person = e.arguments()
|
||||
modes, person = e.arguments()[:2]
|
||||
channel = e.target()
|
||||
giver = nm_to_n(e.source())
|
||||
self.write(channel, self.format["mode"].replace("%channel%", channel) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue