modulecore.py

changeset 115
2bb5c4578ee1
parent 113
08e9b1c1b324
child 117
6c0609395889
equal deleted inserted replaced
114:0d1fd111cb22 115:2bb5c4578ee1
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'])

mercurial