diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-21 12:06:33 +0000 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-21 12:06:33 +0000 |
commit | 7931fab14599b739c18c8f1ebcc24b75688dbc09 (patch) | |
tree | bf4df9757f10c155e3b6f78aed48f15884ebbbe6 /tools.py | |
download | bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.tar.gz bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.tar.bz2 bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.zip |
Phenny2, now being tested on Freenode as the main phenny.
Diffstat (limited to 'tools.py')
-rw-r--r-- | tools.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools.py b/tools.py new file mode 100644 index 0000000..b1da848 --- /dev/null +++ b/tools.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +""" +tools.py - Phenny Tools +Copyright 2008, Sean B. Palmer, inamidst.com +Licensed under the Eiffel Forum License 2. + +http://inamidst.com/phenny/ +""" + +def deprecated(old): + def new(phenny, input, old=old): + self = phenny + origin = type('Origin', (object,), { + 'sender': input.sender, + 'nick': input.nick + })() + match = input.match + args = [input.bytes, input.sender, '@@'] + + old(self, origin, match, args) + new.__name__ = old.__name__ + return new + +if __name__ == '__main__': + print __doc__.strip() |