Advertisement
Guest User

Untitled

a guest
Jul 7th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. """
  2. Greets specified people entering with messages
  3.  
  4. Maintainer: mat^2
  5. """
  6.  
  7. def apply_script(protocol, connection, config):
  8. welcomes = config.get('welcomes', {})
  9. class EnterConnection(connection):
  10. def on_login(self, name):
  11. if name in welcomes:
  12. self.protocol.send_chat(welcomes[name])
  13. connection.on_login(self, name)
  14. return protocol, EnterConnection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement