From 2e12c97bb38cb3d59e7dc38c958a981d8242e28a Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 3 Apr 2012 21:25:47 +0200 Subject: [PATCH] fixed cmd_set nodelete --- src/modules/NeonServ.mod/bot_NeonServ.c | 2 +- src/modules/NeonServ.mod/cmd_neonserv_set.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/NeonServ.mod/bot_NeonServ.c b/src/modules/NeonServ.mod/bot_NeonServ.c index 8421fdb..5914dc6 100644 --- a/src/modules/NeonServ.mod/bot_NeonServ.c +++ b/src/modules/NeonServ.mod/bot_NeonServ.c @@ -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_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"} */ diff --git a/src/modules/NeonServ.mod/cmd_neonserv_set.c b/src/modules/NeonServ.mod/cmd_neonserv_set.c index eb8eabf..2ebb968 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_set.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_set.c @@ -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"; - } 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); -- 2.20.1