X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-op.c;fp=src%2Fngircd%2Firc-op.c;h=2e5c680aaa52ddde65b6a0ade839e90e96770cdb;hp=b75841a805345549b3cb3a247165359b6a0ae5f7;hb=c5da48368569383d064a2325ab3b99d10287a085;hpb=4330f5d1c9119c4461c8fb7c8cf1f78a3ea53e4d diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index b75841a8..2e5c680a 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -150,6 +150,14 @@ IRC_INVITE(CLIENT *Client, REQUEST *Req) return IRC_WriteErrClient(from, ERR_NOSUCHNICK_MSG, Client_ID(Client), Req->argv[0]); + if (Req->argv[1][0] == '&') { + /* Local channel. Make sure the target user is on this server! */ + if (Client_Conn(target) == NONE) + return IRC_WriteErrClient(from, ERR_USERNOTONSERV_MSG, + Client_ID(Client), + Req->argv[0]); + } + chan = Channel_Search(Req->argv[1]); if (chan) { /* Channel exists. Is the user a valid member of the channel? */