Skip to content

Instantly share code, notes, and snippets.

@emberian
Created March 17, 2012 00:56
Show Gist options
  • Save emberian/2053989 to your computer and use it in GitHub Desktop.
Save emberian/2053989 to your computer and use it in GitHub Desktop.
Hub.listen('irc/*', function(Event) {
if (Event.payload.sender = "Octayn") {
Event.payload.message = "<Censored for stupidty>"
}
Event.next() // The new payload is sent
})
Hub.listen('irc/*', function(Event) {
if (ignore_list.indexOf(Event.payload.sender) !== -1) {
Event.next()
}
else {
Event.stop()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment