lehmannro / pyhkal2

IRC bot with bling bling
7 stars 2 forks source link

PyHKAL does not authenticate with Q #34

Open freddyb opened 13 years ago

freddyb commented 13 years ago

Demo code (that is intentionally not pushed):

@hook("irc.signon") def authWithQ(*args):

XXX Security considerations: We do not know the server's authenticity

#... but still authenticate. Maybe switch to CHRAM-MD5 or similair
qauth = remember('quakenet authname')
qpwd = remember('quakenet authpwd')
dispatch_event('irc.sendmessage', 'Q@CServe.quakenet.org', 'AUTH %s %s' % (qauth, qpwd) )