If no person is specified, then the mode changed on the channel
This commit is contained in:
parent
0460e401b7
commit
4f08a04e17
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ class Logbot(SingleServerIRCBot):
|
||||||
def on_mode(self, c, e):
|
def on_mode(self, c, e):
|
||||||
self.write_event("mode", e,
|
self.write_event("mode", e,
|
||||||
{"%modes%" : e.arguments()[0],
|
{"%modes%" : e.arguments()[0],
|
||||||
"%person%" : e.arguments()[1] if len(e.arguments()) > 1 else "",
|
"%person%" : e.arguments()[1] if len(e.arguments()) > 1 else e.target(),
|
||||||
"%giver%" : nm_to_n(e.source()),
|
"%giver%" : nm_to_n(e.source()),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue