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:]: |