From 275d48551c78d4c8253ef6b8c40dda09baec56d6 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 11 May 2005 01:24:59 +0000 Subject: Fixed weird bug where on mass join/part flood, the channel would be purged before it was actually empty due to its counters being screwed up git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1360 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 21e3bffd9..8da1f7bf5 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1384,7 +1384,6 @@ void purge_empty_chans(userrec* u) { if (u->chans[f].channel) { - u->chans[f].channel->DecUserCounter(); u->chans[f].channel->DelUser((char*)u); } } @@ -1897,7 +1896,6 @@ chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool } } - Ptr->DecUserCounter(); Ptr->DelUser((char*)user); /* if there are no users left on the channel */ @@ -1982,7 +1980,6 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason) } } - Ptr->DecUserCounter(); Ptr->DelUser((char*)user); /* if there are no users left on the channel */ -- cgit v1.2.3