Okay, I am making the client handle who logs on/off to add a message saying they did such. Problem is, either IRC is showing up, or RC is showing up.
PHP Code:
function onPlayerLogin(newUser)
{
if (newUser.starts("irc:"))
{
return false;
}
for (temp.var: allplayers)
{
if (temp.var == newUser)
{
temp.found = true;
break;
}
}
if (temp.found)
{
player.addMsg("Server", format("%s has logged on!", newUser), 15);
}
}
function onPlayerLogout(newUser)
{
if (newUser.starts("irc:"))
{
return false;
}
for (temp.var: allplayers)
{
if (temp.var == newUser)
{
temp.found = true;
break;
}
}
if (temp.found)
{
player.addMsg("Server", format("%s has logged off!", newUser), 15);
}
}
That method shows RC's logging on, and no logging off at all =(