Commit Graph

5 Commits

Author SHA1 Message Date
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
Brian S. Stephan 18fc614a4a assorted whitespace nitpicking 2011-01-20 14:15:10 -06:00
Mike Bloy 07d3775842 added help text to the Help module 2011-01-08 22:47:51 -06:00
Mike Bloy 87088e67d1 attempt to ask the modules for help text 2011-01-08 22:32:18 -06:00
Mike Bloy 763f8906d7 Help module responds to commands
Responding to
!help
!help module
!help module [detail...] form
2011-01-08 22:02:04 -06:00