summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}
};