From 7f578746d5fcb5fb4b6ce640071a5c82c982bc61 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 18 Sep 2010 17:37:37 -0400 Subject: Fix global notice of timedban add and remove being sourced from all servers --- src/modules/m_timedbans.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index d290ec18d..b3b22786e 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -84,10 +84,9 @@ found: CUList tmp; T.channel = channelname; T.mask = mask; - T.expire = expire; + T.expire = expire + (IS_REMOTE(user) ? 5 : 0); TimedBanList.push_back(T); channel->WriteAllExcept(ServerInstance->FakeClient, true, '@', tmp, "NOTICE %s :%s added a timed ban on %s lasting for %ld seconds.", channel->name.c_str(), user->nick.c_str(), mask.c_str(), duration); - ServerInstance->PI->SendChannelNotice(channel, '@', user->nick + " added a timed ban on " + mask + " lasting for " + ConvToStr(duration) + " seconds."); return CMD_SUCCESS; } -- cgit v1.2.3