From a0f96731ac90cb0d93918d81ee846cd5b30362ba Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 3 Sep 2006 15:17:05 +0000 Subject: [PATCH] Do not try to moderate join-flood channels with no OpServ. src/opserv.c (opserv_join_check): As feigling points out, it is bad for a service that does not exist to join a channel and hack modes. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-28 --- ChangeLog | 14 ++++++++++++++ src/opserv.c | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ea16d4..4c2dd85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-09-03 15:17:05 GMT Michael Poole patch-28 + + Summary: + Do not try to moderate join-flood channels with no OpServ. + Revision: + srvx--devo--1.3--patch-28 + + src/opserv.c (opserv_join_check): As feigling points out, it is bad for a + service that does not exist to join a channel and hack modes. + + modified files: + ChangeLog src/opserv.c + + 2006-09-03 15:13:31 GMT Michael Poole patch-27 Summary: diff --git a/src/opserv.c b/src/opserv.c index 214aa93..3c0c683 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -1914,7 +1914,7 @@ opserv_join_check(struct modeNode *mNode) struct mod_chanmode change; mod_chanmode_init(&change); channel->join_flooded = 1; - if (opserv_conf.join_flood_moderate && (channel->members.used > opserv_conf.join_flood_moderate_threshold)) { + if (opserv && opserv_conf.join_flood_moderate && (channel->members.used > opserv_conf.join_flood_moderate_threshold)) { if (!GetUserMode(channel, opserv)) { /* If we aren't in the channel, join it. */ change.args[0].mode = MODE_CHANOP; -- 2.20.1