Skip to content
Snippets Groups Projects
Commit 3d695d30 authored by rswindell's avatar rswindell
Browse files

Another attempt to fix the exclude bug.

parent 911b7bfa
No related branches found
No related tags found
No related merge requests found
......@@ -96,19 +96,23 @@ exit();
function send(msg)
{
sendit=true;
if(msg==undefined || msg.search(/^[\r\n]*$/)!=-1) {
log("Not sending blank message");
return;
sendit=false;
}
for(i in exclude) {
if(msg.search(exclude[i])>=0) {
log("Excluding: " + msg);
return;
sendit=false;
}
}
log("Sending: " + msg);
if(!my_server.send("PRIVMSG "+channel+" :"+expand_tabs(msg)+"\r\n"))
alert("send failure");
if(sendit) {
log("Sending: " + msg);
if(!my_server.send("PRIVMSG "+channel+" :"+expand_tabs(msg)+"\r\n"))
alert("send failure");
}
}
function expand_tabs(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment