From 78240c5790eb8c4c869b134b4406cefd6eae586e Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Fri, 14 May 2010 06:16:25 +0000 Subject: Reversed the autoop flag to make it more logical. In 1.8, we set this flag to DISABLE autoop. Now we set this flag to ENABLE autoop. Also updated the database converter. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2957 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_info.c | 2 +- src/core/ns_set.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/ns_info.c b/src/core/ns_info.c index d40b07506..beb61905a 100644 --- a/src/core/ns_info.c +++ b/src/core/ns_info.c @@ -156,7 +156,7 @@ class CommandNSInfo : public Command CheckOptStr(optbuf, NI_SECURE, getstring(u, NICK_INFO_OPT_SECURE), na->nc); CheckOptStr(optbuf, NI_PRIVATE, getstring(u, NICK_INFO_OPT_PRIVATE), na->nc); CheckOptStr(optbuf, NI_MSG, getstring(u, NICK_INFO_OPT_MSG), na->nc); - CheckOptStr(optbuf, NI_AUTOOP, getstring(u, NICK_INFO_OPT_AUTOOP), na->nc, true); + CheckOptStr(optbuf, NI_AUTOOP, getstring(u, NICK_INFO_OPT_AUTOOP), na->nc); notice_lang(Config.s_NickServ, u, NICK_INFO_OPTIONS, optbuf.empty() ? getstring(u, NICK_INFO_OPT_NONE) : optbuf.c_str()); diff --git a/src/core/ns_set.c b/src/core/ns_set.c index 58e2ae4e1..6bbe5c2e4 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -431,12 +431,12 @@ class CommandNSSet : public Command **/ if (param == "ON") { - nc->UnsetFlag(NI_AUTOOP); + nc->SetFlag(NI_AUTOOP); notice_lang(Config.s_NickServ, u, NICK_SET_AUTOOP_ON); } else if (param == "OFF") { - nc->SetFlag(NI_AUTOOP); + nc->UnsetFlag(NI_AUTOOP); notice_lang(Config.s_NickServ, u, NICK_SET_AUTOOP_OFF); } else -- cgit