From f24e17f8b4a579666bae050d81585d42059e7513 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 29 Mar 2013 15:39:58 -0500 Subject: Fix /bs set private --- modules/commands/bs_set.cpp | 4 ++-- modules/database/db_old.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp index 123120289..243ac1746 100644 --- a/modules/commands/bs_set.cpp +++ b/modules/commands/bs_set.cpp @@ -388,12 +388,12 @@ class CommandBSSetPrivate : public Command if (value.equals_ci("ON")) { - bi->ExtendMetadata("PRIVATE"); + bi->oper_only = true; source.Reply(_("Private mode of bot %s is now \002on\002."), bi->nick.c_str()); } else if (value.equals_ci("OFF")) { - bi->Shrink("PRIVATE"); + bi->oper_only = false; source.Reply(_("Private mode of bot %s is now \002off\002."), bi->nick.c_str()); } else diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index e1fe8f69d..03c80e6bd 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -675,7 +675,7 @@ static void LoadBots() bi->created = created; if (flags & OLD_BI_PRIVATE) - bi->ExtendMetadata("PRIVATE"); + bi->oper_only = true; Log(LOG_DEBUG) << "Loaded bot " << bi->nick; } -- cgit