144 args = {} |
144 args = {} |
145 |
145 |
146 for argname in cmd['argnames']: |
146 for argname in cmd['argnames']: |
147 args[argname] = match.group (i) |
147 args[argname] = match.group (i) |
148 i += 1 |
148 i += 1 |
149 |
149 |
|
150 print "ModuleCore: %s called by %s" % (cmdname, kvargs['sender']) |
150 getattr (cmd['module'], "cmd_%s" % cmdname) (bot=bot, cmdname=cmdname, args=args, reply=response_function, **kvargs) |
151 getattr (cmd['module'], "cmd_%s" % cmdname) (bot=bot, cmdname=cmdname, args=args, reply=response_function, **kvargs) |
151 |
152 |
152 # Print the first page of responses. |
153 # Print the first page of responses. |
153 if cmdname != 'more': |
154 if cmdname != 'more': |
154 print_responses (bot, kvargs['replyto']) |
155 print_responses (bot, kvargs['replyto']) |