Created
January 31, 2009 04:52
-
-
Save sotarok/55441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// limechat popup script | |
var list = [ | |
'nequal' | |
,'phpstudy' | |
,'twitter' | |
,'wassr' | |
]; | |
function checkBalloon(prefix, channel, text) | |
{ | |
if (prefix.nick == myNick | |
|| appActive) { | |
return ; | |
} | |
for (k in list) { | |
var regChannel = new RegExp(list[k], "i"); | |
if (channel.match(regChannel)) { | |
showBalloon(channel + " / " + prefix.nick, text); | |
} | |
} | |
} | |
function event::onChannelText(prefix, channel, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} | |
function event::onChannelNotice(prefix, channel, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} | |
function event::onChannelAction(prefix, channel, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} | |
function event::onTalkText(prefix, targetNick, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} | |
function event::onTalkNotice(prefix, targetNick, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} | |
function event::onTalkAction(prefix, targetNick, text) | |
{ | |
checkBalloon(prefix, channel, text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment