fixed cmd_set nodelete
authorpk910 <philipp@zoelle1.de>
Tue, 3 Apr 2012 19:25:47 +0000 (21:25 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 3 Apr 2012 19:25:47 +0000 (21:25 +0200)
src/modules/NeonServ.mod/bot_NeonServ.c
src/modules/NeonServ.mod/cmd_neonserv_set.c

index 8421fdbd840cadf7df7a039f4913bb0477cc4ad2..5914dc61ce0af068e1e73d8d3c799ebf440cceef 100644 (file)
@@ -150,7 +150,7 @@ static const struct default_language_entry msgtab[] = {
     {"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%d$b is not a valid choice.  Choose one:"}, /* {ARGS: 5} */
     {"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%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_INVALID_BOOLEAN", "$b%s$b is an invalid binary value."}, /* {ARGS: "3"} */
     {"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"} */
     {"NS_SET_DEFAULTS_DONE", "All settings for %s have been reset to default values."}, /* {ARGS: "#TestChan"} */
     {"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"} */
     {"NS_SET_DEFAULTS_DONE", "All settings for %s have been reset to default values."}, /* {ARGS: "#TestChan"} */
index eb8eabfb148df003e9073147e8a3c0dd11e23f4c..2ebb96828dac0eac072e9b28359b17967d30d422 100644 (file)
@@ -451,7 +451,7 @@ static char* neonserv_cmd_set_nodelete(struct ClientSocket *client, struct UserN
         //change the channel setting
         if(!strcmp(argument, "0") || !strcmp(argument, "off") || !strcmp(argument, get_language_string(user, "NS_SET_OFF"))) {
             argument = "0";
         //change the channel setting
         if(!strcmp(argument, "0") || !strcmp(argument, "off") || !strcmp(argument, get_language_string(user, "NS_SET_OFF"))) {
             argument = "0";
-        } else if(!strcmp(argument, "0") || !strcmp(argument, "off") || !strcmp(argument, get_language_string(user, "NS_SET_OFF"))) {
+        } else if(!strcmp(argument, "1") || !strcmp(argument, "on") || !strcmp(argument, get_language_string(user, "NS_SET_ON"))) {
             argument = "1";
         } else {
             reply(getTextBot(), user, "NS_SET_INVALID_BOOLEAN", argument);
             argument = "1";
         } else {
             reply(getTextBot(), user, "NS_SET_INVALID_BOOLEAN", argument);