From 5315db41ad4780f0185cf07d79660a645c738e25 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 31 Oct 2007 22:16:42 +0000 Subject: There, i think all thats now left is matches_*line which we can do with two overloaded methods Matches(const char type, const std::string &pattern) and Matches(const char type, User* u) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8450 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 61 ----------------------------------------------------------- 1 file changed, 61 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index be5bf8588..f3a7b28b7 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -259,67 +259,6 @@ ELine* XLineManager::matches_exception(User* user) return NULL; } - -void XLineManager::gline_set_creation_time(const char* host, time_t create_time) -{ - /*for (std::vector::iterator i = glines.begin(); i != glines.end(); i++) - { - if (!strcasecmp(host,(*i)->hostmask)) - { - (*i)->set_time = create_time; - (*i)->expiry = create_time + (*i)->duration; - return; - } - }*/ - - return ; -} - -void XLineManager::eline_set_creation_time(const char* host, time_t create_time) -{ - /*for (std::vector::iterator i = elines.begin(); i != elines.end(); i++) - { - if (!strcasecmp(host,(*i)->hostmask)) - { - (*i)->set_time = create_time; - (*i)->expiry = create_time + (*i)->duration; - return; - } - }*/ - - return; -} - -void XLineManager::qline_set_creation_time(const char* nick, time_t create_time) -{ - /*for (std::vector::iterator i = qlines.begin(); i != qlines.end(); i++) - { - if (!strcasecmp(nick,(*i)->nick)) - { - (*i)->set_time = create_time; - (*i)->expiry = create_time + (*i)->duration; - return; - } - }*/ - - return; -} - -void XLineManager::zline_set_creation_time(const char* ip, time_t create_time) -{ - /*for (std::vector::iterator i = zlines.begin(); i != zlines.end(); i++) - { - if (!strcasecmp(ip,(*i)->ipaddr)) - { - (*i)->set_time = create_time; - (*i)->expiry = create_time + (*i)->duration; - return; - } - }*/ - - return; -} - // returns a pointer to the reason if an ip address matches a zline, NULL if it didnt match ZLine* XLineManager::matches_zline(User *u) -- cgit v1.2.3