]> jfr.im git - solanum.git/blobdiff - modules/m_knock.c
ircd: send tags on every message
[solanum.git] / modules / m_knock.c
index 756a523ee2e4dd2fc246252d60b7abb9404cb408..16fb5eb3d9c907c031211edc42dfffa328897d9d 100644 (file)
@@ -166,7 +166,7 @@ m_knock(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
        chptr->last_knock = rb_current_time();
 
        if(ConfigChannel.use_knock)
-               sendto_channel_local(chptr->mode.mode & MODE_FREEINVITE ? ALL_MEMBERS : ONLY_CHANOPS,
+               sendto_channel_local(source_p, (chptr->mode.mode & MODE_FREEINVITE) ? ALL_MEMBERS : ONLY_CHANOPS,
                                     chptr, form_str(RPL_KNOCK),
                                     me.name, name, name, source_p->name,
                                     source_p->username, source_p->host);