X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_util.c;h=38a7c49cc5817c000e2d16289c2b60b71da3df19;hb=db5be1005b40b416681909cd557ba79ac6935203;hp=b24d07bac76385baebe9d6cecb8d5c37ce762ebb;hpb=febd9934299458d950f311026695ca315933c717;p=silc.git diff --git a/apps/silcd/server_util.c b/apps/silcd/server_util.c index b24d07ba..38a7c49c 100644 --- a/apps/silcd/server_util.c +++ b/apps/silcd/server_util.c @@ -937,7 +937,7 @@ bool silc_server_connection_allowed(SilcServer server, 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; } @@ -948,7 +948,7 @@ bool silc_server_connection_allowed(SilcServer server, 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; } @@ -959,7 +959,7 @@ bool silc_server_connection_allowed(SilcServer server, 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; } @@ -977,7 +977,7 @@ bool silc_server_connection_allowed(SilcServer server, 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; } @@ -986,7 +986,7 @@ bool silc_server_connection_allowed(SilcServer server, 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; } @@ -1294,7 +1294,8 @@ silc_server_check_watcher_list_foreach(void *key, void *context, 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); } }