Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. __module_name__ = "BNC_LOGIN_FTW"
  2. __module_version__ = "1"
  3. __module_description__ = "Logs into a bnc when prompted"
  4.  
  5. import xchat
  6.  
  7. BNC_USERNAME = "thermal"
  8. BNC_PASSWORD = "x"
  9.  
  10. print "\0034",__module_name__, __module_version__,"has been loaded\003"
  11.  
  12. def check_for_connected(word, word_eol, userdata):
  13. if 'You need to send your password' in word_eol[3]:
  14. xchat.command('quote PASS %s:%s' % (BNC_USERNAME, BNC_PASSWORD))
  15. print "Submitted login information (%s)." % (BNC_USERNAME)
  16. return xchat.EAT_NONE
  17.  
  18. xchat.hook_server('NOTICE', check_for_connected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement