From 4f08a04e1795a3db0c15f718630119d8d46b77b0 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Fri, 23 Sep 2011 17:13:44 -0500 Subject: If no person is specified, then the mode changed on the channel --- logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logbot.py') diff --git a/logbot.py b/logbot.py index 6fdeb04..5b5b977 100644 --- a/logbot.py +++ b/logbot.py @@ -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] if len(e.arguments()) > 1 else "", + "%person%" : e.arguments()[1] if len(e.arguments()) > 1 else e.target(), "%giver%" : nm_to_n(e.source()), }) -- cgit v1.2.3