Skip to content
Snippets Groups Projects
Commit 17f094c5 authored by mcmlxxix's avatar mcmlxxix
Browse files

moved user.lastspoke into main ircbot, relocalize commands

parent 1cf944d6
No related branches found
No related tags found
No related merge requests found
......@@ -616,7 +616,3 @@ Bot_Commands["PIPE"].command = function (target,onick,ouh,srv,lvl,cmd) {
srv.o(target, "Invalid arguments.");
return;
}
for(var bc in Bot_Commands) {
js.global.Bot_Commands[bc]=Bot_Commands[bc];
}
\ No newline at end of file
// $Id$
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details:
http://www.gnu.org/licenses/gpl.txt
Copyright 2010 Randolph E. Sommerfeld <sysop@rrx.ca>
*/
/********** Command Processors. **********/
function Server_command(srv,cmdline,onick,ouh) {
var cmd=IRC_parsecommand(cmdline);
switch (cmd[0]) {
case "PRIVMSG":
if(srv.users[onick.toUpperCase()]) srv.users[onick.toUpperCase()].last_spoke=time();
default:
break;
}
}
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