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

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

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

revision 1653 by michael, Wed Nov 7 21:02:43 2012 UTC revision 1654 by michael, Fri Nov 16 19:39:37 2012 UTC
# Line 40  Line 40 
40  #include "whowas.h"  #include "whowas.h"
41  #include "event.h"  #include "event.h"
42  #include "memory.h"  #include "memory.h"
43  #include "balloc.h"  #include "mempool.h"
44  #include "log.h"  #include "log.h"
45  #include "parse.h"  #include "parse.h"
46    
# Line 107  static int channel_capabs[] = { CAP_EX, Line 107  static int channel_capabs[] = { CAP_EX,
107  static int channel_capabs[] = { CAP_EX, CAP_IE, CAP_TS6 };  static int channel_capabs[] = { CAP_EX, CAP_IE, CAP_TS6 };
108  #endif  #endif
109  static struct ChCapCombo chcap_combos[NCHCAP_COMBOS];  static struct ChCapCombo chcap_combos[NCHCAP_COMBOS];
110  extern BlockHeap *ban_heap;  extern mp_pool_t *ban_pool;
111    
112    
113  /* XXX check_string is propably not longer required in add_id and del_id */  /* XXX check_string is propably not longer required in add_id and del_id */
# Line 224  add_id(struct Client *client_p, struct C Line 224  add_id(struct Client *client_p, struct C
224      }      }
225    }    }
226    
227    ban_p = BlockHeapAlloc(ban_heap);    ban_p = mp_pool_get(ban_pool);
228      memset(ban_p, 0, sizeof(*ban_p));
229    ban_p->name = xstrdup(name);    ban_p->name = xstrdup(name);
230    ban_p->username = xstrdup(user);    ban_p->username = xstrdup(user);
231    ban_p->host = xstrdup(host);    ban_p->host = xstrdup(host);

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

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