SILC_LOG_INFO(("Connection %s (%s) is too old version",
sock->hostname, sock->ip));
silc_server_disconnect_remote(server, sock,
- "Server closed connection: "
+ SILC_STATUS_ERR_BAD_VERSION,
"You support too old protocol version");
return FALSE;
}
SILC_LOG_INFO(("Connection %s (%s) is too old version",
sock->hostname, sock->ip));
silc_server_disconnect_remote(server, sock,
- "Server closed connection: "
+ SILC_STATUS_ERR_BAD_VERSION,
"You support too old software version");
return FALSE;
}
SILC_LOG_INFO(("Connection %s (%s) is unsupported version",
sock->hostname, sock->ip));
silc_server_disconnect_remote(server, sock,
- "Server closed connection: "
+ SILC_STATUS_ERR_BAD_VERSION,
"Your software is not supported");
return FALSE;
}
SILC_LOG_INFO(("Server is full, closing %s (%s) connection",
sock->hostname, sock->ip));
silc_server_disconnect_remote(server, sock,
- "Server closed connection: "
+ SILC_STATUS_ERR_RESOURCE_LIMIT,
"Server is full, try again later");
return FALSE;
}
SILC_LOG_INFO(("Too many connections from %s (%s), closing connection",
sock->hostname, sock->ip));
silc_server_disconnect_remote(server, sock,
- "Server closed connection: "
+ SILC_STATUS_ERR_RESOURCE_LIMIT,
"Too many connections from your host");
return FALSE;
}
silc_server_send_notify_watch(notify->server, sock, entry,
notify->client,
notify->new_nick ? notify->new_nick :
- notify->client->nickname, notify->notify);
+ (const char *)notify->client->nickname,
+ notify->notify);
}
}