From: pk910 Date: Thu, 22 Sep 2011 18:50:19 +0000 (+0200) Subject: using integer as parameter for NS_SET_INVALID_OPTION output X-Git-Tag: v5.3~379 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=a64e4352906a141b4a331760378f2b76c22e557d;p=NeonServV5.git using integer as parameter for NS_SET_INVALID_OPTION output --- diff --git a/bot_NeonServ.c b/bot_NeonServ.c index aae4d9e..509ee09 100644 --- a/bot_NeonServ.c +++ b/bot_NeonServ.c @@ -118,7 +118,7 @@ static const struct default_language_entry msgtab[] = { {"NS_SET_UNKNOWN_SETTING", "$b%s$b is an unknown channel setting."}, /* {ARGS: "TestSetting"} */ {"NS_SET_CANNOT_SET", "That setting is above your current level, so you cannot change it."}, {"NS_SET_BADLEVEL", "You cannot change any setting to above your level."}, - {"NS_SET_INVALID_OPTION", "$b%s$b is not a valid choice. Choose one:"}, /* {ARGS: 5} */ + {"NS_SET_INVALID_OPTION", "$b%d$b is not a valid choice. Choose one:"}, /* {ARGS: 5} */ {"NS_SET_INVALID_BOOLEAN", "$b%s$b is an invalid binary value."}, /* {ARGS: 2} */ {"NS_SET_DEFAULTS_OWNER", "You must have access 500 in %s to reset it to the default options."}, /* {ARGS: "#TestChan"} */ {"NS_SET_DEFAULTS_CODE", "To reset %s's settings to the defaults, you must use 'set defaults %s'."}, /* {ARGS: "#TestChan", "abc123"} */ diff --git a/cmd_neonserv_set.c b/cmd_neonserv_set.c index 4c8e87a..3fc5ba5 100644 --- a/cmd_neonserv_set.c +++ b/cmd_neonserv_set.c @@ -250,7 +250,7 @@ static void neonserv_cmd_set_setting(struct ClientSocket *client, struct UserNod int options = atoi((char *) channel_settings[setting].parameter); int coption = atoi(args); if(coption < 0 || coption >= options) { - reply(getTextBot(), user, "NS_SET_INVALID_OPTION", args); + reply(getTextBot(), user, "NS_SET_INVALID_OPTION", coption); int i; int nameBufPos = 0; if(valid & NS_HAS_OPT) {