summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp5
-rw-r--r--src/modes/cmode_b.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index d04b7df97..755165421 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -128,6 +128,10 @@ void ModeHandler::DisplayList(userrec* user, chanrec* channel)
{
}
+void ModeHandler::DisplayEmptyList(userrec* user, chanrec* channel)
+{
+}
+
bool ModeHandler::CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel)
{
return (ours < theirs);
@@ -327,6 +331,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
if (ServerInstance->Config->HideModeLists[mletter] && (targetchannel->GetStatus(user) < STATUS_HOP))
{
user->WriteServ("482 %s %s :Only half-operators and above may view the +%c list",user->nick, targetchannel->name, *mode++);
+ mh->DisplayEmptyList(user, targetchannel);
continue;
}
diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp
index e306f31f6..f82c1296b 100644
--- a/src/modes/cmode_b.cpp
+++ b/src/modes/cmode_b.cpp
@@ -85,6 +85,11 @@ void ModeChannelBan::DisplayList(userrec* user, chanrec* channel)
return;
}
+void ModeChannelBan::DisplayEmptyList(userrec* user, chanrec* channel)
+{
+ user->WriteServ("368 %s %s :End of channel ban list",user->nick, channel->name);
+}
+
std::string& ModeChannelBan::AddBan(userrec *user,std::string &dest,chanrec *chan,int status)
{
if ((!user) || (!chan))