summaryrefslogtreecommitdiff
path: root/include/extern.h
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 /include/extern.h
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 'include/extern.h')
-rw-r--r--include/extern.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index d826bd62e..9942d8271 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -634,8 +634,10 @@ E char *stristr(char *s1, char *s2);
E char *strnrepl(char *s, int32 size, const char *old, const char *nstr);
E const char *merge_args(int argc, char **argv);
E const char *merge_args(int argc, const char **argv);
-E int match_wild(const char *pattern, const char *str);
-E int match_wild_nocase(const char *pattern, const char *str);
+
+// Use Anope::Match() instead of these.
+E int match_wild(const char *pattern, const char *str) MARK_DEPRECATED;
+E int match_wild_nocase(const char *pattern, const char *str) MARK_DEPRECATED;
E int dotime(const char *s);
E char *duration(NickAlias * na, char *buf, int bufsize, time_t seconds);
E char *expire_left(NickAlias * na, char *buf, int len, time_t expires);