- client = ircclient.createIRC(session, nick=nick, ident=ident, ip=ip, realname=realname)
+ qticket = getSessionData(request).get("qticket")
+ if qticket is None:
+ perform = None
+ else:
+ perform = ["PRIVMSG %s :TICKETAUTH %s" % (config.QBOT, qticket)]
+
+ client = ircclient.createIRC(session, nick=nick, ident=ident, ip=ip, realname=realname, perform=perform)