Beispiel #1
0
 def remove_listener(self, event, listener):
     if valid_event(event):
         self._listeners[event].remove(listener)
     else:
         raise TypeError('Invalid IRC event %s.' % event)
Beispiel #2
0
 def remove_listener(self, event, listener):
     if valid_event(event):
         self.listeners[event].remove(listener)
     else:
         raise TypeError('Invalid IRC event %s.' % event)
Beispiel #3
0
 def register_listener(self, event, listener):
     if valid_event(event):
         self._listeners[event].append(listener)
     else:
         raise TypeError('Invalid IRC event %s.' % event)
Beispiel #4
0
 def register_listener(self, event, listener):
     if valid_event(event):
         self.listeners[event].append(listener)
     else:
         raise TypeError('Invalid IRC event %s.' % event)