summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2011-09-23 17:13:44 -0500
committerChris Oliver <excid3@gmail.com>2011-09-23 17:13:44 -0500
commit4f08a04e1795a3db0c15f718630119d8d46b77b0 (patch)
tree299bbba62da7552a6252555b304b2d00a387c2f8 /logbot.py
parent0460e401b72b0442a0019b941d6f333f23ebbc26 (diff)
downloadlogbot-4f08a04e1795a3db0c15f718630119d8d46b77b0.tar.xz
If no person is specified, then the mode changed on the channel
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py2
1 files changed, 1 insertions, 1 deletions
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()),
})