summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-01 00:27:50 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-01 00:27:50 +0000
commit355ffd23e201d3e35f2dfb8fd050568bedb768ff (patch)
tree0c16b8435943cd0061b0d074932d0d5b01117bd6
parenteba6c0fb9126d51b42deda79c6c4a43e15f8923f (diff)
OK, it's more useful if this compiles...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11393 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_timedbans.cpp6
1 files 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<std::string> 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)