commit - 63cbc6cd4262971d0ef795d2404bc545413e159a
commit + 805bf0349064a1a1f6412c19a3a3bcb7fb7ccbe1
blob - 50648c97ef81842807305cd330cd5643ed6c81a6
blob + 1edc7550e1f4e8c3ec9db65f952ca32d766ab241
--- src/ngircd/client.c
+++ src/ngircd/client.c
assert( Client->conn_id > NONE );
assert( ID != NULL );
- /* Nick too long? */
+ /* ID too long? */
if (strlen(ID) > CLIENT_ID_LEN) {
IRC_WriteStrClient(Client, ERR_ERRONEUSNICKNAME_MSG, Client_ID(Client), ID);
return false;
}
- /* does ID already exist? */
+ /* ID already in use? */
c = My_Clients;
while (c) {
if (strcasecmp(c->id, ID) == 0) {
snprintf(str, sizeof(str), "ID \"%s\" already registered", ID);
- if (Client->conn_id != c->conn_id)
+ if (c->conn_id != NONE)
Log(LOG_ERR, "%s (on connection %d)!", str, c->conn_id);
else
Log(LOG_ERR, "%s (via network)!", str);