First of all, thanks for the great programming! Finally a chatroom that works well.
I was wondering, when users can not choose their nickname they can still change it by typing /nick. I know you can't just remove the function as it is required for the connection, but what would be a way to disable it once a user is in the chat? I tried messing about in the nick class but that didn't go so well.
- Code: Select all
if ($c->nick != "")
{
$newnick = "";
}
Doesn't work strangely enough. What I don't get is why a empty nick passed via "/nick " does work, and that doesn't. It probably has to do with the fact that the latter is changed to a string of numbers, but where does this happen?
Secondly, it would be great if there was a button to clear the history, ie. the printed chat lines. Especially if you keep your chat window open for days it would be nice. I know you can connect/disconnect, but it's still some hassle.
<removed: was on todo list>
Hope these suggestions help,
Ryan