1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 11:53:13 +02:00

Fixed a bug in the empty channel fix

This commit is contained in:
codemastr
2003-01-05 01:28:23 +00:00
parent b455704e7f
commit d47e956c5b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1759,3 +1759,4 @@ seen. gmtime warning still there
reported by AngryWolf (#0000596)
- Fixed whole bunch of users in empty channel bug (probably)
- Added a patch by Syzop to increase the "randomness" of well... the random numbers
- Fixed a bug in the empty channel fix
+1 -1
View File
@@ -2624,7 +2624,7 @@ static void sub1_from_channel(aChannel *chptr)
* someone doesn't remember what -- does when
* preceding a variable.
if (--chptr->users <= 0) */
if (chptr->users-- == 0)
if (chptr->users == 0 || --chptr->users == 0)
{
/*
* Now, find all invite links from channel structure