/[svn]/ircd-hybrid/trunk/src/conf_class.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/conf_class.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1653 by michael, Sat Nov 10 20:57:51 2012 UTC revision 1654 by michael, Fri Nov 16 19:39:37 2012 UTC
# Line 27  Line 27 
27  #include "stdinc.h"  #include "stdinc.h"
28  #include "list.h"  #include "list.h"
29  #include "ircd_defs.h"  #include "ircd_defs.h"
 #include "balloc.h"  
30  #include "conf.h"  #include "conf.h"
31  #include "s_serv.h"  #include "s_serv.h"
32  #include "resv.h"  #include "resv.h"
# Line 111  get_client_class(const dlink_list *const Line 110  get_client_class(const dlink_list *const
110      const struct MaskItem *conf = ptr->data;      const struct MaskItem *conf = ptr->data;
111    
112      assert(conf->class);      assert(conf->class);
113      assert(conf->type & (CONF_OPERATOR | CONF_CLIENT | CONF_SERVER));      assert(conf->type & (CONF_OPER | CONF_CLIENT | CONF_SERVER));
114    
115      return conf->class->name;      return conf->class->name;
116    }    }
# Line 127  get_client_ping(const dlink_list *const Line 126  get_client_ping(const dlink_list *const
126    if ((ptr = list->head)) {    if ((ptr = list->head)) {
127      const struct MaskItem *conf = ptr->data;      const struct MaskItem *conf = ptr->data;
128    
129      assert(aconf->class);      assert(conf->class);
130      assert(aconf->type & (CONF_OPERATOR | CONF_CLIENT | CONF_SERVER));      assert(conf->type & (CONF_OPER | CONF_CLIENT | CONF_SERVER));
131    
132      return conf->class->ping_freq;      return conf->class->ping_freq;
133    }    }
# Line 145  get_sendq(const dlink_list *const list) Line 144  get_sendq(const dlink_list *const list)
144      const struct MaskItem *conf = ptr->data;      const struct MaskItem *conf = ptr->data;
145    
146      assert(conf->class);      assert(conf->class);
147      assert(conf->type & (CONF_OPERATOR | CONF_CLIENT | CONF_SERVER));      assert(conf->type & (CONF_OPER | CONF_CLIENT | CONF_SERVER));
148    
149      return conf->class->max_sendq;      return conf->class->max_sendq;
150    }    }
# Line 162  get_recvq(const dlink_list *const list) Line 161  get_recvq(const dlink_list *const list)
161      const struct MaskItem *conf = ptr->data;      const struct MaskItem *conf = ptr->data;
162    
163      assert(conf->class);      assert(conf->class);
164      assert(conf->type & (CONF_OPERATOR | CONF_CLIENT | CONF_SERVER));      assert(conf->type & (CONF_OPER | CONF_CLIENT | CONF_SERVER));
165    
166      return conf->class->max_recvq;      return conf->class->max_recvq;
167    }    }

Legend:
Removed from v.1653  
changed lines
  Added in v.1654

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28