Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bot.on('005', function (message) {
- params = message.params;
- // Line = "YourName SET_NAME=SETTING SET_NAME etc... :are supported by this server"
- Bot.debug("005 Recieved. Params: "+message.params.join(' '));
- for (var i = 1; i < params.length - 1; i++) {
- var settingName = params[i].split('=')[0];
- Bot.ServerInfo[settingName] = true;
- if (settingName === params[i]) continue;
- Bot.ServerInfo[settingName] = params[i].substr(params[i].indexOf('=')+1);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment