From 8fecad3039626feb3200a133355b754b7751a35b Mon Sep 17 00:00:00 2001 From: Zantox Date: Mon, 23 Jun 2014 07:47:26 -0400 Subject: Updated BotServ Command English Language --- modules/commands/bs_badwords.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/bs_badwords.cpp') diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index c4155bbc1..6deaa8924 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -400,7 +400,7 @@ class CommandBSBadwords : public Command if (Anope::ReadOnly) { - source.Reply(_("Sorry, channel bad words list modification is temporarily disabled.")); + source.Reply(_("Sorry, bad words list modification is temporarily disabled.")); return; } @@ -446,7 +446,7 @@ class CommandBSBadwords : public Command " Lists bad words entries numbered 2 through 5 and\n" " 7 through 9.\n" " \n" - "The \002CLEAR\002 command clears all entries of the\n" + "The \002CLEAR\002 command clears all entries from the\n" "bad words list.")); return true; } -- cgit From 3bdc81348aa2b795e4cdaf2a2ecbde80b70427d7 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 1 Sep 2014 13:11:21 -0400 Subject: Fix unserializing badwords to not add dupes when unserializing an existing bw object --- modules/commands/bs_badwords.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/commands/bs_badwords.cpp') diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index 6deaa8924..a29c626a2 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -138,7 +138,8 @@ Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data) bw->type = static_cast(n); BadWordsImpl *bws = ci->Require("badwords"); - bws->badwords->push_back(bw); + if (!obj) + bws->badwords->push_back(bw); return bw; } -- cgit