X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/9bd05cf6ce93e89492b5e239aeb7785879a57039..4df64299d7751fb90a9cf5e2964e9bcc365bcc3e:/modules/foo.py diff --git a/modules/foo.py b/modules/foo.py index 8063afb..9dbf29f 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -19,7 +19,7 @@ modstop = lib.modstop # module code @lib.hook('test', needchan=False) def cmd_gtest(bot, user, chan, realtarget, *args): - if chan is not None: replyto = chan + if realtarget == chan.name: replyto = chan else: replyto = user bot.msg(replyto, "You said: %s" % (' '.join([str(arg) for arg in args])))