From 3d8ec5dbd9cfde34fcbc63ad7b9b1369866f0a33 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:49:24 +0000 Subject: Remove "servermode" parameter, replace with IS_FAKE() which is more reliable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_b.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modes/cmode_b.cpp') diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index 595bdb99e..415d33c30 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -29,13 +29,13 @@ ModeChannelBan::ModeChannelBan(InspIRCd* Instance) : ModeHandler(Instance, NULL, { } -ModeAction ModeChannelBan::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding, bool servermode) +ModeAction ModeChannelBan::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding) { int status = channel->GetStatus(source); /* Call the correct method depending on wether we're adding or removing the mode */ if (adding) { - parameter = this->AddBan(source, parameter, channel, status, servermode); + parameter = this->AddBan(source, parameter, channel, status); } else { @@ -92,7 +92,7 @@ void ModeChannelBan::DisplayEmptyList(User* user, Channel* channel) user->WriteServ("368 %s %s :End of channel ban list",user->nick.c_str(), channel->name.c_str()); } -std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan, int, bool servermode) +std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan, int) { if ((!user) || (!chan)) { @@ -135,7 +135,7 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan b.set_time = ServerInstance->Time(); b.data.assign(dest, 0, MAXBUF); - b.set_by.assign(servermode ? ServerInstance->Config->ServerName : user->nick, 0, 64); + b.set_by.assign(user->nick, 0, 64); chan->bans.push_back(b); return dest; } -- cgit v1.2.3