KHD

Untitled

KHD
Nov 7th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Bot.on('005', function (message) {
  2. params = message.params;
  3. // Line = "YourName SET_NAME=SETTING SET_NAME etc... :are supported by this server"
  4. Bot.debug("005 Recieved. Params: "+message.params.join(' '));
  5. for (var i = 1; i < params.length - 1; i++) {
  6. var settingName = params[i].split('=')[0];
  7. Bot.ServerInfo[settingName] = true;
  8. if (settingName === params[i]) continue;
  9. Bot.ServerInfo[settingName] = params[i].substr(params[i].indexOf('=')+1);
  10. }
  11. });
Advertisement
Add Comment
Please, Sign In to add comment