function show_seen($nick, $trignick)
{
global $wanted_channel, $wanted_nick, $db_host, $db_user, $db_name, $db_pass;
if ($nick == $wanted_nick) {
irc_privmsg($wanted_channel, "Quit wasting my time you moron");
return;
}
if ($nick == $trignick) {
irc_privmsg($wanted_channel, "You can't find yourself. God you are fux0rd.");
return;
}
$nicklist = irc_get_nick_list($wanted_channel);
while (list(, $ircnick) = each($nicklist)) {
$string = "Test: " . $ircnick;
irc_privmsg($wanted_channel, $string);
if ($ircnick == $nick) {
irc_privmsg($wanted_channel, "Too stupid to look at the nicklist?!");
return;
}
}
...
}
There's all the code you need to see. It does not execute the while code, and I know this for a fact because it doesn't display the little test message I have in there.