i've been fighting for a while now, trying to get my bot to kickban someone by command. e.g. !kb john would first ban john and then kick him.
Now, the problem is to get the hostmask for john. If i use whois and listenFor(), it disconnects once whois is called. I noticed someone mentioning $irc->channel[$chan]->users, but i failed to get it working. Got any thoughts on this one?
PS: Great job on this API. I'm very excited with this :) thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the HTML documentation its explained, $irc->channel[$channel]->users[$user]->hostmask;
$channel and $user have to be _lower_ case (common mistake just using name and channel as it is).
Channel syncing has to be activated otherwise this user and channel array is not existend and about listenFor() read the damnit manual! ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
:) nice to hear that it works now...
btw about 0.6.0, try the CVS version please, because I am moving the release so I got more testphase time...
where you get the latest CVS version see in the FAQ forum post...
and even more important, tell me the results of the cvs version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i've been fighting for a while now, trying to get my bot to kickban someone by command. e.g. !kb john would first ban john and then kick him.
Now, the problem is to get the hostmask for john. If i use whois and listenFor(), it disconnects once whois is called. I noticed someone mentioning $irc->channel[$chan]->users, but i failed to get it working. Got any thoughts on this one?
PS: Great job on this API. I'm very excited with this :) thanks
In the HTML documentation its explained, $irc->channel[$channel]->users[$user]->hostmask;
$channel and $user have to be _lower_ case (common mistake just using name and channel as it is).
Channel syncing has to be activated otherwise this user and channel array is not existend and about listenFor() read the damnit manual! ;)
heh, i did read the manual for listenFor(), and i knew - just stated the fact ;)
but i got things right, so i thank you, and i'll be waiting for 0.6.0!
:) nice to hear that it works now...
btw about 0.6.0, try the CVS version please, because I am moving the release so I got more testphase time...
where you get the latest CVS version see in the FAQ forum post...
and even more important, tell me the results of the cvs version.