Here's the deal:
I'm creating a php irc bot and using the command:
!admin add <nickname>
I just wanted to know if its possible that if the name is in the channel the bot does /whois on the nickname, puts it in a array
and uses it later for putting it in my mysql db. On the moment i'm just using !admin add for the person itself, then its easy to strip
from the data and insert it in db.
code for the auth when a user says some,
$raw[0] = nickname info (vb :user!test@quakenet.users.org):
Code: Select all
function host($str) {
$set = substr(array_shift(explode('@',$str)),1);
$set2 = str_replace($set, "", $str);
return str_replace(":", "", $set2);
}
working with the bot.
Anyhow it must only work when i'm !admin add <someone> and not when they do it thereself.
Can anyone help me with this?