X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_silence.cpp;h=87b70dfa46451d6922f5b4397876ed0d2541d839;hb=da53c17315d3eb0d0177608d306d208bdf05786b;hp=36d024ba52b0be7d22dbc93bdafb4f5cf6fd25d1;hpb=bcd65de1ec4bb71591ae417fee649d7ecd37cd57;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 36d024ba5..87b70dfa4 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -41,7 +41,7 @@ class SilenceEntry // Exclude users who match this flags ("x"). SF_EXEMPT = 1, - + // 2, 4, 8, 16 are reserved for future use. // Matches a NOTICE targeted at a channel ("n"). @@ -187,7 +187,7 @@ class SilenceMessage : public ClientProtocol::Message : ClientProtocol::Message("SILENCE") { PushParam(mask); - PushParamRef(flags); + PushParam(flags); } }; @@ -201,7 +201,7 @@ class CommandSilence : public SplitCommand SilenceList* list = ext.get(user); if (list && list->size() > maxsilence) { - user->WriteNumeric(ERR_SILELISTFULL, mask, SilenceEntry::BitsToFlags(flags), "Your silence list is full"); + user->WriteNumeric(ERR_SILELISTFULL, mask, SilenceEntry::BitsToFlags(flags), "Your SILENCE list is full"); return CMD_FAILURE; } else if (!list) @@ -213,7 +213,7 @@ class CommandSilence : public SplitCommand if (!list->insert(SilenceEntry(flags, mask)).second) { - user->WriteNumeric(ERR_SILENCE, mask, SilenceEntry::BitsToFlags(flags), "The silence entry you specified already exists"); + user->WriteNumeric(ERR_SILENCE, mask, SilenceEntry::BitsToFlags(flags), "The SILENCE entry you specified already exists"); return CMD_FAILURE; } @@ -239,7 +239,7 @@ class CommandSilence : public SplitCommand } } - user->WriteNumeric(ERR_SILENCE, mask, SilenceEntry::BitsToFlags(flags), "The silence entry you specified could not be found"); + user->WriteNumeric(ERR_SILENCE, mask, SilenceEntry::BitsToFlags(flags), "The SILENCE entry you specified could not be found"); return CMD_FAILURE; } @@ -253,7 +253,7 @@ class CommandSilence : public SplitCommand user->WriteNumeric(RPL_SILELIST, iter->mask, SilenceEntry::BitsToFlags(iter->flags)); } } - user->WriteNumeric(RPL_ENDOFSILELIST, "End of silence list"); + user->WriteNumeric(RPL_ENDOFSILELIST, "End of SILENCE list"); return CMD_SUCCESS; } @@ -369,7 +369,7 @@ class ModuleSilence void On005Numeric(std::map& tokens) CXX11_OVERRIDE { - tokens["ESILENCE"] = "CcdiNnPpsTtx"; + tokens["ESILENCE"] = "CcdiNnPpTtx"; tokens["SILENCE"] = ConvToStr(cmd.maxsilence); } @@ -431,7 +431,7 @@ class ModuleSilence Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for blocking users with the /SILENCE command", VF_OPTCOMMON | VF_VENDOR); + return Version("Provides support for blocking users with the SILENCE command", VF_OPTCOMMON | VF_VENDOR); } };