Page 1 of 1

php irc bot

Posted: Mon Aug 24, 2009 11:16 am
by rbzz
It's twisting my mind lately, but i can't figure out how i'm gonna do it.
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);
}
 
after this it keeps @quakenet.... because if someone is namechanging it keeps
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?

Re: php irc bot

Posted: Mon Aug 24, 2009 6:21 pm
by rbzz
' bump '

Re: php irc bot

Posted: Tue Aug 25, 2009 2:36 pm
by rbzz
anyone?

Re: php irc bot

Posted: Wed Aug 26, 2009 9:44 am
by rbzz
bump bump pow - black eyed pies

Re: php irc bot

Posted: Sun Aug 30, 2009 7:24 pm
by rbzz
urboemba shakalala

Re: php irc bot

Posted: Sun Aug 30, 2009 7:38 pm
by John Cartwright
I'm going to have to ask you to stop bumping this thread (as per our rules which can be found in my signature). You should consider rewriting your thread with more explanation to your issue.