comparison irclib.py @ 264:53f4d9aa2b52

(irclib) removed is_connected method because it is useless Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 22 Mar 2010 18:43:19 +0100
parents 9a2302e8382b
children c726e8b28318
comparison
equal deleted inserted replaced
263:73d6e284c18d 264:53f4d9aa2b52
850 if event.eventtype() in ['disconnect', 'nicknameinuse', 'nickcollision', 'erroneusnickname', 'nicknametoolong']: 850 if event.eventtype() in ['disconnect', 'nicknameinuse', 'nickcollision', 'erroneusnickname', 'nicknametoolong']:
851 self._call_nick_callbacks(event.eventtype(), arguments=[event]) 851 self._call_nick_callbacks(event.eventtype(), arguments=[event])
852 if event.eventtype() in self.handlers: 852 if event.eventtype() in self.handlers:
853 for fn in self.handlers[event.eventtype()]: 853 for fn in self.handlers[event.eventtype()]:
854 fn(self, event) 854 fn(self, event)
855
856 def is_connected(self):
857 """Return connection status.
858
859 Returns true if connected, otherwise false.
860 """
861 return self.connected
862 855
863 def add_global_handler(self, *args): 856 def add_global_handler(self, *args):
864 """Add global handler. 857 """Add global handler.
865 858
866 See documentation for IRC.add_global_handler. 859 See documentation for IRC.add_global_handler.