summaryrefslogtreecommitdiff
path: root/src/svsopers.cpp
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 15:20:47 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 15:20:47 +0000
commitb10305ef3b568a43541213b3ab102f85695d7d37 (patch)
tree0ba9817f190c9b080b81e3974e89476448299c58 /src/svsopers.cpp
parente1828057c322f6e905bcc55a9b5613853d394081 (diff)
Convert to use new, (drastically) faster matching algorithm, from InspIRCd. This adds Anope::Match(), and marks match_wild() and match_wild_nocase() deprecated.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2059 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/svsopers.cpp')
-rw-r--r--src/svsopers.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/svsopers.cpp b/src/svsopers.cpp
index 5e59467b6..8b2adee5b 100644
--- a/src/svsopers.cpp
+++ b/src/svsopers.cpp
@@ -1,4 +1,15 @@
-#include "services.h"
+/*
+ * Copyright (C) 2008-2009 Robin Burchell <w00t@inspircd.org>
+ * Copyright (C) 2008-2009 Anope Team <team@anope.org>
+ *
+ * Please read COPYING and README for further details.
+ *
+ *
+ * $Id$
+ *
+ */
+
+ #include "services.h"
bool SVSOper::HasCommand(const std::string &cmdstr)
{
@@ -12,11 +23,11 @@ bool SVSOper::HasPriv(const std::string &privstr)
void SVSOper::AddCommand(const std::string &cmdstr)
{
-
+ this->commands.push_back(cmdstr);
}
void SVSOper::AddPriv(const std::string &privstr)
{
-
+ this->privs.push_back(privstr);
}