ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/core/m_join.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/core/m_join.c (file contents):
Revision 1618 by michael, Tue Oct 30 21:04:38 2012 UTC vs.
Revision 1687 by michael, Wed Dec 19 20:47:44 2012 UTC

# Line 97 | Line 97 | m_join(struct Client *client_p, struct C
97    char *chan_list = NULL;
98    char *chan = NULL;
99    struct Channel *chptr = NULL;
100 +  struct MaskItem *conf = NULL;
101    int i = 0;
102    unsigned int flags = 0;
103  
# Line 134 | Line 135 | m_join(struct Client *client_p, struct C
135  
136      if (!IsExemptResv(source_p) &&
137          !(HasUMode(source_p, UMODE_OPER) && ConfigFileEntry.oper_pass_resv) &&
138 <        (!hash_find_resv(chan) == ConfigChannel.restrict_channels))
138 >        (!(conf = hash_find_resv(chan)) == ConfigChannel.restrict_channels))
139      {
140 +      if (conf)
141 +        ++conf->count;
142        sendto_one(source_p, form_str(ERR_BADCHANNAME),
143                   me.name, source_p->name, chan);
144        sendto_realops_flags(UMODE_SPY, L_ALL, SEND_NOTICE,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines