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

Comparing ircd-hybrid-7.2/modules/m_knock.c (file contents):
Revision 885 by michael, Wed Oct 31 18:09:24 2007 UTC vs.
Revision 886 by michael, Wed Oct 31 18:45:58 2007 UTC

# Line 129 | Line 129 | m_knock(struct Client *client_p, struct
129  
130    if (MyClient(source_p))
131    {
132 <    /* don't allow a knock if the user is banned, or the channel is secret */
133 <    if ((chptr->mode.mode & MODE_PRIVATE) || is_banned(chptr, source_p))
132 >    /*
133 >     * Don't allow a knock if the user is banned, or the channel is private
134 >     */
135 >    if (PrivateChannel(chptr) || is_banned(chptr, source_p))
136      {
137        sendto_one(source_p, form_str(ERR_CANNOTSENDTOCHAN),
138                   me.name, source_p->name, chptr->chname);
# Line 174 | Line 176 | m_knock(struct Client *client_p, struct
176                           source_p->host);
177  
178    sendto_server(client_p, chptr, CAP_KNOCK|CAP_TS6, NOCAPS,
179 <                ":%s KNOCK %s %s", ID(source_p), chptr->chname);
179 >                ":%s KNOCK %s", ID(source_p), chptr->chname);
180    sendto_server(client_p, chptr, CAP_KNOCK, CAP_TS6,
181 <                ":%s KNOCK %s %s", source_p->name, chptr->chname);
181 >                ":%s KNOCK %s", source_p->name, chptr->chname);
182   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines