source file: irc/version.py
file stats: 8 lines, 8 executed: 100.0% covered
   1. #!/usr/bin/env python
   2. 
   3. class version:
   4. 
   5.     _state = None
   6. 
   7.     def __init__(self, state):
   8.         self._state = state
   9.         state.registerCallback(state.CALLBACK_REQUESTVERSION, self.callbackRequestVersion)
  10. 
  11.     def callbackRequestVersion(self, (origin, target)):
  12.         if target[0] == self._state.getServerID():
  13.             self._state.oobmsg((self._state.getServerID(), None), origin, "351", ["The WorldIRC Service Host - http://www.pling.org.uk/projects/wish/"])