raise AJAXException, "Nickname not supplied."
nick = ircclient.irc_decode(nick[0])
+ password = request.args.get("password")
+ if password is not None:
+ password = ircclient.irc_decode(password[0])
+
for i in xrange(10):
id = get_session_id()
if not Sessions.get(id):
self.__connect_hit()
def proceed(hostname):
- client = ircclient.createIRC(session, nick=nick, ident=ident, ip=ip, realname=realname, perform=perform, hostname=hostname)
+ kwargs = dict(nick=nick, ident=ident, ip=ip, realname=realname, perform=perform, hostname=hostname)
+ if password is not None:
+ kwargs["password"] = password
+
+ client = ircclient.createIRC(session, **kwargs)
session.client = client
if not hasattr(config, "WEBIRC_MODE") or config.WEBIRC_MODE == "hmac":