From 355ffd23e201d3e35f2dfb8fd050568bedb768ff Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 1 Jun 2009 00:27:50 +0000 Subject: OK, it's more useful if this compiles... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11393 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index e18bca6a5..c95cf2089 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -153,19 +153,19 @@ class ModuleTimedBans : public Module { if (curtime > i->expire) { - std::string chan = i->mask; + std::string chan = i->channel; std::string mask = i->mask; Channel* cr = ServerInstance->FindChan(chan); i = TimedBanList.erase(i); if (cr) { std::vector setban; - setban.push_back(safei->channel); + setban.push_back(chan); setban.push_back("-b"); setban.push_back(mask); CUList empty; - std::string expiry = "*** Timed ban on " + safei->mask + " expired."; + std::string expiry = "*** Timed ban on " + chan + " expired."; cr->WriteChannelWithServ(ServerInstance->FakeClient, true, '@', empty, "NOTICE %s :%s", cr->name.c_str(), expiry.c_str()); ServerInstance->PI->SendChannelNotice(cr, '@', expiry); if (ServerInstance->Config->AllowHalfop) -- cgit v1.2.3