Skip to content

Instantly share code, notes, and snippets.

@tiagoad
Created January 1, 2013 14:37
Show Gist options
  • Save tiagoad/4427916 to your computer and use it in GitHub Desktop.
Save tiagoad/4427916 to your computer and use it in GitHub Desktop.
GazelleGames invite autojoiner
# -*- coding: utf-8 -*-
__module_name__ = "invitejoin"
__module_version__ = "1.0"
__module_description__ = "Autojoins channels when invited by bots"
import xchat
bots = {
'Vertigo': 'irc.gazellegames.net'
}
def invite_event(word, word_eol, userdata):
if word[1] in bots:
if bots[word[1]] == word[2]:
print "Joining %s (Invited by %s)" % (word[0], word[1])
xchat.command("join %s" % word[0])
xchat.hook_print("Invited", invite_event)
print "Invite autojoiner loaded"
@antonygamal
Copy link

how works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment