From: zonidjan Date: Tue, 4 Feb 2014 12:27:00 +0000 (-0600) Subject: bugfix foo.py X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/8583bc126864f201404136a817d21100b644f552 bugfix foo.py --- 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])))