From: Gabriel B. <sh...@us...> - 2006-10-01 21:28:02
|
Update of /cvsroot/solidircd/solidircd-stable/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv30568/src Modified Files: channel.c Log Message: Finished implementing channel mode +A for admins only Index: channel.c =================================================================== RCS file: /cvsroot/solidircd/solidircd-stable/src/channel.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** channel.c 1 Oct 2006 21:04:57 -0000 1.21 --- channel.c 1 Oct 2006 21:27:59 -0000 1.22 *************** *** 2520,2523 **** --- 2520,2528 ---- error = ERR_INVITEONLYCHAN; } + else if (chptr->mode.mode &MODE_ADMINONLY && !IsAdmin(sptr)) + { + r = "+A"; + error = ERR_INVITEONLYCHAN; + } else if (chptr->mode.limit && chptr->users >= chptr->mode.limit) { |