ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/s_bsd.c (file contents):
Revision 1631 by michael, Tue Oct 30 21:04:38 2012 UTC vs.
Revision 1632 by michael, Sun Nov 4 15:37:10 2012 UTC

# Line 177 | Line 177 | init_comm(void)
177   void
178   close_connection(struct Client *client_p)
179   {
180  struct AccessItem *aconf;
181  struct ClassItem *aclass;
180    dlink_node *ptr = NULL;
181  
182    assert(client_p);
# Line 210 | Line 208 | close_connection(struct Client *client_p
208  
209      DLINK_FOREACH(ptr, server_items.head)
210      {
211 <      struct ConfItem *conf = ptr->data;
211 >      struct MaskItem *conf = ptr->data;
212  
213        if (irccmp(conf->name, client_p->name))
214          continue;
# Line 219 | Line 217 | close_connection(struct Client *client_p
217         * Reset next-connect cycle of all connect{} blocks that match
218         * this servername.
219         */
220 <      aconf  = map_to_conf(conf);
223 <      aclass = map_to_conf(aconf->class_ptr);
224 <      aconf->hold = CurrentTime + aclass->con_freq;
220 >      conf->hold = CurrentTime + conf->class->con_freq;
221      }
222    }
223    else
# Line 243 | Line 239 | close_connection(struct Client *client_p
239    dbuf_clear(&client_p->localClient->buf_recvq);
240    
241    MyFree(client_p->localClient->passwd);
242 <  detach_conf(client_p, CONF_TYPE);
242 >  detach_conf(client_p, CONF_CLIENT|CONF_OPER|CONF_SERVER);
243    client_p->from = NULL; /* ...this should catch them! >:) --msa */
244   }
245  

Diff Legend

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