diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-18 17:37:37 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-18 17:37:37 -0400 |
commit | 7f578746d5fcb5fb4b6ce640071a5c82c982bc61 (patch) | |
tree | ab912737a434938a7773e6283608f8f8696824bf /src | |
parent | 49f43c14c6cba623dcd5981b4f56f1dd3f972f0a (diff) |
Fix global notice of timedban add and remove being sourced from all servers
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_timedbans.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |