- 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)
-{
- if (lookup_lines.find('Z') == lookup_lines.end())
- return NULL;
-
- if (lookup_lines.find('Z') != lookup_lines.end() && lookup_lines['Z'].empty())
- return NULL;
-
- for (std::vector<XLine*>::iterator i = active_lines.begin(); i != active_lines.end(); i++)
- if ((*i)->type == 'Z' && (*i)->Matches(u))
- return (ZLine*)(*i);