From 8ff89e893a7e9a93f19d841b61d26916811257f2 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Aug 2007 21:01:36 +0000 Subject: backport: Proper fix for end-of-list numerics on restricted lists in bug #386, rather than a hackish nonmodular one. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7839 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mode.cpp') 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; } -- cgit v1.3.1-10-gc9f91