X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/586997a7668236c42527b70e4da93edcf4fa4af4..8583bc126864f201404136a817d21100b644f552:/modules/foo.py?ds=sidebyside diff --git a/modules/foo.py b/modules/foo.py index 276b9a3..fbcb38c 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -19,7 +19,9 @@ modstop = lib.modstop # module code @lib.hook('test', needchan=False) def cmd_gtest(bot, user, chan, realtarget, *args): + print type(chan), repr(chan), str(chan) + if chan is not None: replyto = chan else: replyto = user - bot.msg(chan, "You said: %s" % (' '.join([str(arg) for arg in args]))) + bot.msg(replyto, "You said: %s" % (' '.join([str(arg) for arg in args])))