/***********************************************************************
X3 ChangeLog
+2010-07-07 Matthew Beeching <jobe@mdbnet.co.uk>
+
+ * src/opserv.c: Added support to TRACE/ADDALERT CHECKRESTRICTIONS
+ criteria for channel mode +O and +r.
+
2010-07-03 Matthew Beeching <jobe@mdbnet.co.uk>
* src/chanserv.c: Removed extra 'is' from CSMSG_SMURF_TARGET.
return; /* channel is invite only */
}
+ if (!IsOper(target) && (channel->modes & MODE_OPERSONLY)) {
+ return; /* user is not oper and channel is opers only */
+ }
+
+ /* Update to check if user is umode +a */
+ if (!IsOper(target) && (channel->modes & MODE_ADMINSONLY)) {
+ return; /* user is not admin and channel is admin only */
+ }
+
+ if (target->handle_info && (channel->modes & MODE_REGONLY)) {
+ return; /* user is not authed and channel is authed only users */
+ }
+
+ /* Add test for channel mode +Z with user mode -z */
+
if (channel->limit > 0) {
if (channel->members.used >= channel->limit) {
return; /* channel is invite on */