summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-04-13 15:40:26 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-04-13 15:40:26 +0200
commit8723866b4cdf100892677ab5c1619fcee9536d9b (patch)
tree34b4e52dab1889659b3d868186cb8548959a6d26 /src/modules
parent4dd7fb60a8e46856cb2df3fcda56b9b119072552 (diff)
m_timedbans Store Channel pointer in struct TimedBan
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_timedbans.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 497ac2569..f633bc3e2 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -32,6 +32,7 @@ class TimedBan
std::string channel;
std::string mask;
time_t expire;
+ Channel* chan;
};
typedef std::vector<TimedBan> timedbans;
@@ -98,6 +99,7 @@ found:
T.channel = channelname;
T.mask = mask;
T.expire = expire + (IS_REMOTE(user) ? 5 : 0);
+ T.chan = channel;
TimedBanList.push_back(T);
// If halfop is loaded, send notice to halfops and above, otherwise send to ops and above