]> jfr.im git - erebus.git/commitdiff
bugfix foo.py
authorzonidjan <redacted>
Tue, 4 Feb 2014 12:27:00 +0000 (06:27 -0600)
committerzonidjan <redacted>
Tue, 4 Feb 2014 12:27:00 +0000 (06:27 -0600)
modules/foo.py

index 276b9a364ad3eb6711a1c2f8607e9b0754a40a28..fbcb38c3003b35dbb2694cc67692ff1862e1a85c 100644 (file)
@@ -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])))