summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 01:07:31 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 01:07:31 +0000
commitdda690a5ac6ade0b52c0c33320de16477a51f9e4 (patch)
tree1b9cbc19eea1ea12b12228b3968c94eb2941dfc9 /src
parentfb49fe0dac1d9c3591ae5b695ad6b2a2f79b6b67 (diff)
Well, it should do something useful now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2614 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cban.cpp9
1 files changed, 6 insertions, 3 deletions
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<CBan> cbans;
class CBan
{
@@ -56,6 +56,9 @@ class CBan
}
};
+vector<CBan> 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);
}
}
};