fixed a /who bug that caused 100% cpu
This commit is contained in:
parent
e5ea01201f
commit
395184a7c5
2 changed files with 7 additions and 10 deletions
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: channel.h,v 1.5 2002/09/02 04:10:59 fishwaldo Exp $
|
||||
* $Id: channel.h,v 1.6 2002/09/05 13:14:36 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_channel_h
|
||||
|
@ -151,13 +151,10 @@ struct Ban /* also used for exceptions -orabidoo */
|
|||
};
|
||||
|
||||
#define CLEANUP_CHANNELS_TIME (30*60)
|
||||
//#undef MAX_VCHAN_TIME (60*60)
|
||||
/* Number of chanops, peon, voiced, halfops sublists */
|
||||
#ifdef REQUIRE_OANDV
|
||||
#define NUMLISTS 6
|
||||
#else
|
||||
|
||||
/* Number of chanops, peon, voiced, halfops, chanadmins sublists */
|
||||
|
||||
#define NUMLISTS 5
|
||||
#endif
|
||||
|
||||
#ifdef INTENSIVE_DEBUG
|
||||
void do_channel_integrity_check(void);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: m_who.c,v 1.5 2002/09/02 04:10:59 fishwaldo Exp $
|
||||
* $Id: m_who.c,v 1.6 2002/09/05 13:14:36 fishwaldo Exp $
|
||||
*/
|
||||
#include "stdinc.h"
|
||||
#include "tools.h"
|
||||
|
@ -60,7 +60,7 @@ _moddeinit(void)
|
|||
{
|
||||
mod_del_cmd(&who_msgtab);
|
||||
}
|
||||
const char *_version = "$Revision: 1.5 $";
|
||||
const char *_version = "$Revision: 1.6 $";
|
||||
#endif
|
||||
static void do_who_on_channel(struct Client *source_p,
|
||||
struct Channel *chptr, char *real_name,
|
||||
|
@ -405,7 +405,7 @@ static void do_who_list(struct Client *source_p, struct Channel *chptr,
|
|||
halfops_ptr = halfops_list->head;
|
||||
chanadmins_ptr = chanadmins_list->head;
|
||||
|
||||
while (done != NUMLISTS)
|
||||
while (done < NUMLISTS)
|
||||
{
|
||||
done = 0;
|
||||
|
||||
|
|
Reference in a new issue