Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Nickname list

Help
2005-07-11
2013-04-09
  • Hey,

    I want to check a certain irc channel and display all user-nicknames that are in it. Does anybody here have an idea how to do that?

    I used the example2 to count all users, but i want to add list the nicknames after...

    please help!

    Regards
    Slash-X

     
    • $channel = &$irc->getChannel('#test');
      if ($channel !== false) {
          foreach ($channel->users as $user) {
              echo $user->nick;
          }
      }

      Something among those lines.
      Play around a little with that code and you should get it working.