irc.py

changeset 117
6c0609395889
parent 112
cdafc1a0544e
child 118
dbf49689af0d
equal deleted inserted replaced
116:9e483447654b 117:6c0609395889
198 198
199 def handle_command (self, sender, ident, host, replyto, command, args, message): 199 def handle_command (self, sender, ident, host, replyto, command, args, message):
200 kvargs = {'sender': sender, 'ident': ident, 'host': host, 'replyto': replyto, 'cmdname': command, 'message': message} 200 kvargs = {'sender': sender, 'ident': ident, 'host': host, 'replyto': replyto, 'cmdname': command, 'message': message}
201 201
202 try: 202 try:
203 result = ModuleCore.call_command (self, **kvargs) 203 ModuleCore.call_command (self, **kvargs)
204 204 return
205 if result:
206 return
207 except ModuleCore.CommandError as e: 205 except ModuleCore.CommandError as e:
208 lines = str (e).split ('\n') 206 lines = str (e).split ('\n')
209 self.privmsg (replyto, 'error: %s' % lines[0]) 207 self.privmsg (replyto, 'error: %s' % lines[0])
210 208
211 for line in lines[1:]: 209 for line in lines[1:]:

mercurial