if (getParameterByName('settings')) { return config; } var conInfo = extractServerFromUrl(); if (conInfo) { readFromUrl = true; // The URL is in the format of /nextclient/server.irc/#channel config.startupScreen = 'welcome'; config.startupOptions.server = conInfo.server; config.startupOptions.port = conInfo.port; config.startupOptions.tls = conInfo.tls; if (conInfo.channel) { config.startupOptions.channel = conInfo.channel; } } else if(window.location.hash && window.location.hash.indexOf('/') > -1) { readFromUrl = true; // The URL hash contains a possible IRC address. ie. irc://server.irc/channel // This supports multiple networks and ZNC connections so use the customServer // startup that supports all that. config.startupScreen = 'customServer'; config.startupOptions.state_key = false; } else { // Use the server given config. Most likely the personal startup } /* // If the URL hash contains / then assume a server is being set if (window.location.hash && window.location.hash.indexOf('/') > -1) { config.startupScreen = 'customServer'; config.startupOptions.state_key = false; } */ var irccomParts = (getParameterByName('irccom') || '').split('.'); if (irccomParts.length === 2) { console.log(irccomParts); window.localStorage.setItem('irccom', JSON.stringify({ type: 'initialauth', username: irccomParts[0], token: irccomParts[1], })); window.location = '/nextclient/'; return; } var irccom = null; // Only check if we're using irc.com bnc if we didnt read a server address from the url if (!readFromUrl) { try { irccom = JSON.parse(window.localStorage.getItem('irccom') || '{}'); } catch (err) { } } if (irccom && irccom.username && irccom.token) { // User just logged into irc.com, redirected back here with a token. // A plugin below will also check for this token so it can listen for any // new updated auth tokens config.startupScreen = 'welcome'; config.startupOptions.state_key = 'irccom_kiwistate_'+irccom.username.toLowerCase(); config.startupOptions.bouncer = true; config.startupOptions.remember_buffers = false; config.startupOptions.server = ''; config.startupOptions.port = 6667; config.startupOptions.tls = false; config.startupOptions.nick = irccom.username; config.startupOptions.password = irccom.token; config.startupOptions.autoConnect = true; // If our current irccom auth is only the initial auth token, remove it since it // was only single use. We will expect an full auth token from *bnc on a successful // connection if (irccom.type === 'initialauth') { window.localStorage.removeItem('irccom'); } } return config; }
Basic IRC Commands

/nick nickname
Example: type /nick tengkorak
What it looks like: I typed /nick tengkorak
*** skull is now known as tengkorak

/me message
The /me is an action message.
Type /me ‘does anything’
Example: /me waves hello
What it looks like:
* tengkorak waves hello

/msg nickname message
Type /msg nickname (message) to start a private chat.
Example: /msg tengkorak Hey tat, how are you?
What it looks like:
-> *tengkorak* Hey tat, how are you?

Services IRC Commands

/msg Nickserv REGISTER password email-address
Registers your nickname in the NickServ database. Once your nick is registered, you can use the SET and ACCESS commands to configure your nick’s settings as you like them. Make sure you remember the password you use when registering – you’ll need it to make changes to your nick later.

/msg Nickserv IDENTIFY password
Tells NickServ that you are really the owner of this nick. Many commands require you to authenticate yourself with this command before you use them. The password should be the same one you sent with the REGISTER command.

/msg NickServ RECOVER nickname password
Recovers your nick from another user or from services. If services are currently holding your nick, the hold will be released. If another user is holding your nick and is identified they will be killed. If they are not identified they will be forced off of the nick.