BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: okegima on June 01, 2009, 07:18:05 pm

Title: !logon module
Post by: okegima on June 01, 2009, 07:18:05 pm
hi all. after checking on the forum and wiki, can you tell me if there is a module existing allowing admin and owner to add logon comment on a player ?
like this : !logon <player> <message>
i know the owner can do it directly on the mysql, but for admin it is a bit difficulte :)

so, if there an existing module please link me the files or write the code at the following. i'll be interrested.

thank you.
Title: Re: !logon module
Post by: Nogoal on July 08, 2009, 11:32:03 am
Try to add this to the command_handler


if (preg_match("/^logonadmin ([a-zA-Z0-9]+) (.+)/i", $msg, $info))
{
return $this -> set_msg(ucfirst(strtolower($info[1])), $info[2]);
}


and this to the construct


$this -> register_command("all", "logonadmin", "ADMIN");


Didn't test it but I guess it should work.
SimplePortal 2.3.7 © 2008-2024, SimplePortal