]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
There, i think all thats now left is matches_*line which we can do with two overloade...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 31 Oct 2007 22:16:42 +0000 (22:16 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 31 Oct 2007 22:16:42 +0000 (22:16 +0000)
Matches(const char type, User* u)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8450 e03df62e-2008-0410-955e-edbf42e46eb7

include/xline.h
src/xline.cpp

index c6d85187afebbde0339962722c5a05d9b255f3e3..5de773aaf5ee64fb3f1c909d0b7b10ec6e4764f6 100644 (file)
@@ -513,36 +513,6 @@ class CoreExport XLineManager
         * @param results The string_list to receive the results
         */
        void InvokeStats(const char type, int numeric, User* user, string_list &results);
-
-       /** Handle /STATS E
-        * @param user The username making the query
-        * @param results The string_list to receive the results
-        */
-       void stats_e(User* user, string_list &results);
-
-       /** Change creation time of a GLine
-        * @param host The hostname to change
-        * @param create_Time The new creation time
-        */
-       void gline_set_creation_time(const char* host, time_t create_time);
-
-       /** Change creation time of a QLine
-        * @param nick The nickmask to change
-        * @param create_Time The new creation time
-        */
-       void qline_set_creation_time(const char* nick, time_t create_time);
-
-       /** Change creation time of a ZLine
-        * @param ip The ipmask to change
-        * @param create_Time The new creation time
-        */
-       void zline_set_creation_time(const char* ip, time_t create_time);
-
-       /** Change creation time of a ELine
-        * @param host The hostname to change
-        * @param create_Time The new creation time
-        */
-       void eline_set_creation_time(const char* host, time_t create_time);
 };
 
 class CoreExport GLineFactory : public XLineFactory
index be5bf8588b6c50c34b75567217cd0a71dc53995e..f3a7b28b77c26093e5a3b3b8cfc958d4dee73270 100644 (file)
@@ -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<XLine*>::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<ELine*>::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<QLine*>::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<ZLine*>::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)