Browse Source

Cleanup

dave/xdcc
dave 5 years ago
parent
commit
4daf05858b
  1. 1
      pyircbot/modules/Calc.py
  2. 3
      pyircbot/pyircbot.py

1
pyircbot/modules/Calc.py

@ -79,7 +79,6 @@ class Calc(ModuleBase):
seconds = int(remaining - (minutes * 60))
return "Please wait %s minute(s) and %s second(s)." % (minutes, seconds)
# @regex(r'(?:^\.?(?:calc|quote)(?:\s+?(?:([^=]+)(?:\s?(=)\s?(.+)?)?)?)?)')
@regex(r'(?:^\.?(?:calc|quote)(?:\s+?(?:([^=]+)(?:\s?(=)\s?(.+)?)?)?)?)', types=['PRIVMSG'])
def cmd_calc(self, match, message):
word, changeit, value = match.groups()

3
pyircbot/pyircbot.py

@ -92,9 +92,6 @@ class PyIRCBot(object):
self.log.info("disconnect")
self.kill(message=message)
def break_connection(self):
"""Break the connection, e.g. in the case of an unresponsive server"""
def kill(self, message="Help! Another thread is killing me :(", forever=True):
"""Close the connection violently

Loading…
Cancel
Save