Jump to content

users online


Kingy

Recommended Posts

With my php irc bot im trying to make something that will see which users in my mysql database are connected to the irc server.

 

i find which users are connected to the server simply by going

fputs($conn,"OPERSERV userlist\r\n");

 

and it then $data shows me:

:OperServ!services NOTICE IrcBOT : User1

:OperServ!services NOTICE IrcBOT : User2

:OperServ!services NOTICE IrcBOT : User3

 

I'm not entirely sure how to do this, but i would like to make a function that would then take User1, User2, User3 compare either of those names with the ones i SELECT out of the database of its a match then that user is online.

 

really how would i go about this. Could i put the users into an array or something...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.