Skip to content
Snippets Groups Projects
Commit 1ce99000 authored by deuce's avatar deuce
Browse files

Remove empty message detection (broken I guess)

Expand tabs to spaces.
parent 1885e74e
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ var port=6667;
var nick="nick";
var msg;
var join=false;
var passed_msg=0;
for(i=0;i<argc;i++) {
switch(argv[i]) {
......@@ -33,16 +32,14 @@ for(i=0;i<argc;i++) {
break;
case "-m":
msg=argv[++i];
passed_msg=1;
break;
}
}
if(passed_msg && (msg == undefined || msg.search(/^\s*$/))) {
log("Cowardly refusing to send empty message");
exit();
}
log("Message: "+msg);
msg.replace(/\t/,
function(str,offset,s) {
return(' '.substr(0,(offset % 8)));
});
log("Using nick: " + nick);
log("Connecting to: " +server+ " port " + port);
......
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