dr.botzo/modules
Brian S. Stephan 2aa369add7 rewrite recursion/alias code for the 500th time.
more of a moving of the code, actually, it now exists in (an overridden)
_handle_event, so that recursions happen against irc events directly,
rather than an already partially interpreted object.

with this change, modules don't need to implement do() nor do we have a
need for the internal_bus, which was doing an additional walk of the
modules after the irc event was already handled and turned into text. now
the core event handler does the recursion scans.

to support this, we bring back the old replypath trick and use it again,
so we know when to send a privmsg reply and when to return text so that
it may be chained in recursion. this feels old hat by now, but if you
haven't been following along, you should really look at the diff.

that's the meat of the change. the rest is updating modules to use
self.reply() and reimplementing (un)register_handlers where appropriate
2011-02-17 01:08:45 -06:00
..
Countdown.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Dice.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Echo.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
EightBall.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
FactFile.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Facts.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
GoogleTranslate.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Help.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
IrcAdmin.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Karma.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Markov.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
MegaHAL.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Pi.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Seen.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Storycraft.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
TextTransform.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Trigger.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Twitter.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Urls.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
Weather.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
__init__.py turns out we do indeed need modules/__init__.py, so add it back 2011-01-08 09:39:05 -06:00