From 9dce6693f63e9fa222054d6ffd390aa04ea415a9 Mon Sep 17 00:00:00 2001 From: Tilka Date: Fri, 6 Jul 2012 13:18:01 +0200 Subject: [PATCH 1/7] fix error messages and comments --- doc/uhub.conf | 6 +++--- src/core/hub.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/uhub.conf b/doc/uhub.conf index d379b0c..8df4ee4 100644 --- a/doc/uhub.conf +++ b/doc/uhub.conf @@ -104,11 +104,11 @@ msg_auth_invalid_password = Password is wrong msg_auth_user_not_found = User not found in password database msg_user_share_size_low = User is not sharing enough msg_user_share_size_high = User is sharing too much -msg_user_slots_low = User have too few upload slots -msg_user_slots_high = User have too many upload slots +msg_user_slots_low = User has too few upload slots +msg_user_slots_high = User has too many upload slots msg_user_hub_limit_low = User is on too few hubs msg_user_hub_limit_high = User is on too many hubs -msg_error_no_memory = No memory +msg_error_no_memory = Out of memory msg_user_flood_chat = Chat flood detected, messages are dropped. msg_user_flood_connect = Connect flood detected, connection refused. msg_user_flood_search = Search flood detected, search is stopped. diff --git a/src/core/hub.h b/src/core/hub.h index cf1cd4b..4962c7e 100644 --- a/src/core/hub.h +++ b/src/core/hub.h @@ -27,7 +27,7 @@ enum status_message status_msg_hub_registered_users_only = -3, /* hub is for registered users only */ status_msg_inf_error_nick_missing = -4, /* no nickname given */ status_msg_inf_error_nick_multiple = -5, /* multiple nicknames given */ - status_msg_inf_error_nick_invalid = -6, /* generic/unkown */ + status_msg_inf_error_nick_invalid = -6, /* generic/unknown */ status_msg_inf_error_nick_long = -7, /* nickname too long */ status_msg_inf_error_nick_short = -8, /* nickname too short */ status_msg_inf_error_nick_spaces = -9, /* nickname cannot start with spaces */ @@ -50,8 +50,8 @@ enum status_message status_msg_user_share_size_high = -41, /* User is sharing too much. */ status_msg_user_slots_low = -42, /* User has too few slots open. */ status_msg_user_slots_high = -43, /* User has too many slots open. */ - status_msg_user_hub_limit_low = -44, /* Use is on too few hubs. */ - status_msg_user_hub_limit_high = -45, /* Use is on too many hubs. */ + status_msg_user_hub_limit_low = -44, /* User is on too few hubs. */ + status_msg_user_hub_limit_high = -45, /* User is on too many hubs. */ status_msg_proto_no_common_hash = -50, /* No common hash algorithms */ status_msg_proto_obsolete_adc0 = -51, /* Client is using an obsolete protocol version */ From dcc7aa40181790edc9c5bc8996b7c3f3686d537c Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Thu, 8 Nov 2012 12:36:37 +0100 Subject: [PATCH 2/7] some regex adjustments IP addresses are now checked for correct charset rather than allowing everything. --- src/core/config.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/config.xml b/src/core/config.xml index b5e949d..a020d04 100644 --- a/src/core/config.xml +++ b/src/core/config.xml @@ -17,7 +17,7 @@