/[svn]/ircd-hybrid/branches/8.0.x/modules/core/m_join.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.0.x/modules/core/m_join.c

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

revision 1684 by michael, Sat Oct 27 21:09:19 2012 UTC revision 1685 by michael, Wed Dec 19 20:24:52 2012 UTC
# Line 37  Line 37 
37  #include "conf.h"  #include "conf.h"
38  #include "parse.h"  #include "parse.h"
39  #include "modules.h"  #include "modules.h"
40    #include "resv.h"
41    
42    
43  static void do_join_0(struct Client *, struct Client *);  static void do_join_0(struct Client *, struct Client *);
# Line 97  m_join(struct Client *client_p, struct C Line 98  m_join(struct Client *client_p, struct C
98    char *chan_list = NULL;    char *chan_list = NULL;
99    char *chan = NULL;    char *chan = NULL;
100    struct Channel *chptr = NULL;    struct Channel *chptr = NULL;
101      struct ResvChannel *resv_cp = NULL;
102    int i = 0;    int i = 0;
103    unsigned int flags = 0;    unsigned int flags = 0;
104    
# Line 134  m_join(struct Client *client_p, struct C Line 136  m_join(struct Client *client_p, struct C
136    
137      if (!IsExemptResv(source_p) &&      if (!IsExemptResv(source_p) &&
138          !(HasUMode(source_p, UMODE_OPER) && ConfigFileEntry.oper_pass_resv) &&          !(HasUMode(source_p, UMODE_OPER) && ConfigFileEntry.oper_pass_resv) &&
139          (!hash_find_resv(chan) == ConfigChannel.restrict_channels))          (!(resv_cp = hash_find_resv(chan)) == ConfigChannel.restrict_channels))
140      {      {
141          if (resv_cp)
142            ++resv_cp->count;
143        sendto_one(source_p, form_str(ERR_BADCHANNAME),        sendto_one(source_p, form_str(ERR_BADCHANNAME),
144                   me.name, source_p->name, chan);                   me.name, source_p->name, chan);
145        sendto_realops_flags(UMODE_SPY, L_ALL,        sendto_realops_flags(UMODE_SPY, L_ALL,

Legend:
Removed from v.1684  
changed lines
  Added in v.1685

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