From 09178f3a0c2af72e620aef4055da4de6ca2610f8 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 4 Sep 2003 20:04:49 +0000 Subject: [PATCH] - Fixed a crashbug with +f and services, reported by Rocko (#0001227). --- Changes | 1 + src/channel.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 421de1c2c..7eba0662b 100644 --- a/Changes +++ b/Changes @@ -2388,3 +2388,4 @@ seen. gmtime warning still there - Fixed multiple chmode +u bugs: remote join, netjoin, +mu relay between servers, kick and a part bug. Most of them reported by Lx (#0001097). - Fixed a bug in +f + modes-on-join + 't' subfloodtype, reported by Rocko (#0001228). +- Fixed a crashbug with +f and services, reported by Rocko (#0001227). diff --git a/src/channel.c b/src/channel.c index 5368eb6c0..c07d6e4ec 100644 --- a/src/channel.c +++ b/src/channel.c @@ -3646,7 +3646,7 @@ CMD_FUNC(do_join) * Nr 4 is done because otherwise you would have a noticeflood with 'joinflood detected' * from all servers. */ - if (chptr->mode.floodprot && (MyClient(sptr) || sptr->serv->flags.synced) && + if (chptr->mode.floodprot && (MyClient(sptr) || sptr->srvptr->serv->flags.synced) && do_chanflood(chptr->mode.floodprot, FLD_JOIN) && MyClient(sptr)) { do_chanflood_action(chptr, FLD_JOIN, "join");