From dda690a5ac6ade0b52c0c33320de16477a51f9e4 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 22 Dec 2005 01:07:31 +0000 Subject: Well, it should do something useful now git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2614 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/m_cban.cpp') diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index b8b3e6ee1..66abbfc22 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -24,8 +24,8 @@ using namespace std; /* $ModDesc: Gives /cban, aka C:lines. Think Q:lines, for channels. */ +extern time_t TIME; Server *Srv; -vector cbans; class CBan { @@ -56,6 +56,9 @@ class CBan } }; +vector cbans; +/* don't ask why this is here. */ + class cmd_cban : public command_t { private: @@ -85,11 +88,11 @@ class cmd_cban : public command_t /* full form to add a CBAN */ /* XXX - checking on chnames */ chname = parameters[0]; - expiry = TIME + Srv->Duration(parameters[1]); + expiry = TIME + Srv->CalcDuration(parameters[1]); reason = parameters[2]; CBan meow(chname, reason, expiry); - cbans.push_back(meow) + cbans.push_back(meow); } } }; -- cgit v1.2.3