ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.1.0beta5/modules/m_xline.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_xline.c (file contents):
Revision 1625 by michael, Thu Nov 1 13:49:25 2012 UTC vs.
Revision 1628 by michael, Thu Nov 1 21:08:56 2012 UTC

# Line 345 | Line 345 | write_xline(struct Client *source_p, cha
345    current_date = smalldate(cur_time);
346    xconf->setat = CurrentTime;
347  
348 +  SetConfDatabase(xconf);
349 +
350    if (tkline_time != 0)
351    {
352      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
# Line 358 | Line 360 | write_xline(struct Client *source_p, cha
360           source_p->name, (int)tkline_time/60,
361           conf->name, xconf->reason);
362      xconf->hold = CurrentTime + tkline_time;
361    SetConfTemporary(conf);
363    }
364    else
365    {
# Line 412 | Line 413 | remove_xline_match(const char *gecos)
413    DLINK_FOREACH_SAFE(ptr, next_ptr, xconf_items.head)
414    {
415      conf = ptr->data;
416 +    struct MatchItem *xconf = map_to_conf(conf);
417  
418 <    if (IsConfMain(conf))
418 >    if (!IsConfDatabase(xconf))
419        continue;
420  
421      if (!irccmp(gecos, conf->name))
422      {
421      free_dlink_node(ptr);
423        delete_conf_item(conf);
424        return 1;
425      }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)