X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-op.c;h=5c12faf78022ac8929d239029a4e7d2e8ff2fe47;hb=e0da56fc7b1dae4e21dfda7e0ac8ad7594135986;hp=08495475f60520c7dd899d7cef9e10b4f4852550;hpb=46b0eef721b9b3eec37d29aff65b6a7fc488a887;p=ngircd-alex.git diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index 08495475..5c12faf7 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -164,6 +164,11 @@ IRC_INVITE(CLIENT *Client, REQUEST *Req) if (!Channel_IsMemberOf(chan, from)) return IRC_WriteStrClient(from, ERR_NOTONCHANNEL_MSG, Client_ID(Client), Req->argv[1]); + /* Is the channel "invite-disallow"? */ + if (strchr(Channel_Modes(chan), 'V')) + return IRC_WriteStrClient(from, ERR_NOINVITE_MSG, + Client_ID(from), Channel_Name(chan)); + /* Is the channel "invite-only"? */ if (strchr(Channel_Modes(chan), 'i')) { /* Yes. The user must be channel owner/admin/operator/halfop! */