From b98ea4605f7bcdf665f5c01acda5faf86edad382 Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Mon, 27 Sep 2010 19:11:03 -0400 Subject: Initialize recursing and botID in the constructor --- src/modules/m_serverbots.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_serverbots.cpp') diff --git a/src/modules/m_serverbots.cpp b/src/modules/m_serverbots.cpp index 01179b1d1..4765336d7 100644 --- a/src/modules/m_serverbots.cpp +++ b/src/modules/m_serverbots.cpp @@ -198,12 +198,10 @@ class ModuleServerBots : public Module int botID; public: - ModuleServerBots() : dataExt(EXTENSIBLE_USER, "serverbot", this) {} + ModuleServerBots() : dataExt(EXTENSIBLE_USER, "serverbot", this), recursing(false), botID(0) {} void init() { - recursing = false; - botID = 0; ServerInstance->Modules->Attach(I_OnUserMessage, this); } -- cgit v1.3.1-10-gc9f91