using integer as parameter for NS_SET_INVALID_OPTION output
authorpk910 <philipp@zoelle1.de>
Thu, 22 Sep 2011 18:50:19 +0000 (20:50 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 22 Sep 2011 18:50:19 +0000 (20:50 +0200)
bot_NeonServ.c
cmd_neonserv_set.c

index aae4d9ead6852ee8fe58686296a73c6f313a1b9b..509ee09356ba4bdc34b7e7e76304a4e5182dd727 100644 (file)
@@ -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"} */
index 4c8e87a105c32e5920d2d284468516130f033163..3fc5ba587a59197ff686c0c5d75d4bfb77b31485 100644 (file)
@@ -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) {