diff --git a/exec/ircbots/ham/ham.js b/exec/ircbots/ham/ham.js index 5000f297a0ae761e9528f8e58db44867d4b9039c..370d1f0a120a6b2e2fc2e128ecf1eeb174af33ba 100644 --- a/exec/ircbots/ham/ham.js +++ b/exec/ircbots/ham/ham.js @@ -44,6 +44,24 @@ function main(srv,target) last_update=time(); } +Bot_Commands["Z"] = new Bot_Command(0, false, false); +Bot_Commands["Z"].command = function (target, onick, ouh, srv, lbl, cmd) { + // Remove empty cmd args + for(i=1; i<cmd.length; i++) { + if(cmd[i].search(/^\s*$/)==0) { + cmd.splice(i,1); + i--; + } + } + + if(cmd.length == 1) { + var d=new Date(time()*1000); + srv.o(target,d.toGMTString()); + } + + return true; +} + Bot_Commands["CALLSIGN"] = new Bot_Command(0,false,false); Bot_Commands["CALLSIGN"].command = function (target,onick,ouh,srv,lvl,cmd) { var callsign;