Add new hook that treat all messages, not only PRIVMSG ; can respond with a response.Hook to create a hook

This commit is contained in:
Némunaire 2012-11-04 04:28:24 +01:00
commit dc52593953
10 changed files with 365 additions and 243 deletions

View file

@ -144,7 +144,10 @@ class Server(threading.Thread):
self._receive_action = receive_action
if not self.connected:
self.stop = False
self.start()
try:
self.start()
except RuntimeError:
pass
elif verb:
print (" Already connected.")