]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_timedbans Store Channel pointer in struct TimedBan
authorAttila Molnar <attilamolnar@hush.com>
Mon, 13 Apr 2015 13:40:26 +0000 (15:40 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 13 Apr 2015 13:40:26 +0000 (15:40 +0200)
src/modules/m_timedbans.cpp

index 497ac2569d94ad80528656a1c4a1de345ab339d4..f633bc3e209d6ea5b19ffea5bdd61411814d1018 100644 (file)
@@ -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