Skip to content
Snippets Groups Projects
Commit 0c2d1e12 authored by deuce's avatar deuce
Browse files

Allow messages containing whitespace... just don't allow messages

contianing nothing but \rs and \ns.
parent 04053ade
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ for(i=0;i<argc;i++) {
}
}
if(passedmsg && (msg==undefined || msg.search(/^\s*$/)!=-1)) {
if(passedmsg && (msg==undefined || msg.search(/^[\r\n]*$/)!=-1)) {
log("-m specified with blank message... aborting");
exit();
}
......@@ -90,7 +90,7 @@ IRC_quit(my_server);
function send(msg)
{
if(msg==undefined || msg.search(/^\s*$/)!=-1) {
if(msg==undefined || msg.search(/^[\r\n]*$/)!=-1) {
log("Not sending blank message");
return;
}
......
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