]> jfr.im git - erebus.git/blobdiff - modules/foo.py
adjust nitterize regex
[erebus.git] / modules / foo.py
index 54e1b5192fe912d9402a6a2ef4e29d8c716d7c81..f6e430cff0db33b81f2931d45b03a3240721ed32 100644 (file)
@@ -1,4 +1,5 @@
 # Erebus IRC bot - Author: Erebus Team
+# vim: fileencoding=utf-8
 # simple module example
 # This file is released into the public domain; see http://unlicense.org/
 
@@ -6,7 +7,7 @@
 modinfo = {
        'author': 'Erebus Team',
        'license': 'public domain',
-       'compatible': [2], # compatible module API versions
+       'compatible': [0], # compatible module API versions
        'depends': [], # other modules required to work properly?
        'softdeps': ['help'], # modules which are preferred but not required
 }
@@ -43,6 +44,7 @@ def needchan(bot, user, chan, realtarget, *args):
 
 @lib.hook(needchan=False, wantchan=True)
 @lib.help(None, 'a command which will consume a channel if given')
+def wantchan(bot, user, chan, realtarget, *args):
        if chan is not None:
                bot.msg(user, "Channel provided: %s" % (chan))
        else: