diff options
| author | 2015-04-13 15:40:26 +0200 | |
|---|---|---|
| committer | 2015-04-13 15:40:26 +0200 | |
| commit | 8723866b4cdf100892677ab5c1619fcee9536d9b (patch) | |
| tree | 34b4e52dab1889659b3d868186cb8548959a6d26 /src/modules/m_timedbans.cpp | |
| parent | Merge pull request #1004 from SaberUK/insp20+fix-various-warnings (diff) | |
| download | inspircd++-8723866b4cdf100892677ab5c1619fcee9536d9b.tar.gz inspircd++-8723866b4cdf100892677ab5c1619fcee9536d9b.tar.bz2 inspircd++-8723866b4cdf100892677ab5c1619fcee9536d9b.zip | |
m_timedbans Store Channel pointer in struct TimedBan
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 2 |
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 |
