import hexchat

__module_name__ = 'SASL workaround'
__module_author__ = 'TingPing'
__module_version__ = '0'
__module_description__ = 'Workaround for sasl on inspircd servers'
# This bug has been fixed already in git, but this will work on 2.9.6

def auth_cb(word, word_eol, userdata):
	if ',' in word[1]:
		return hexchat.EAT_ALL

hexchat.hook_server('AUTHENTICATE', auth_cb)