Skip to content

Instantly share code, notes, and snippets.

@prawnsalad
Created July 5, 2013 22:33
Show Gist options
  • Save prawnsalad/5937653 to your computer and use it in GitHub Desktop.
Save prawnsalad/5937653 to your computer and use it in GitHub Desktop.
// Build up an object of symbols here from prefixes..
var symbols = {'~': '~', '@': '@'};
if (that.irc_connection.options.PREFIX) {
for (i = 0; i < member.length; i++) {
if (symbols[member.charAt(i)]) {
modes.push(symbols[member.charAt(i)]);
} else {
return;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment