aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-09 18:55:52 +0000
committerGravatar brain2006-08-09 18:55:52 +0000
commit9bc04a302572eb311a147a32ff1d36f1d91f2d7a (patch)
tree847f867baeefde36c133387b578aa937c37b4360 /src/modules/m_timedbans.cpp
parentMove tons more stuff into class InspIRCd (diff)
downloadinspircd++-9bc04a302572eb311a147a32ff1d36f1d91f2d7a.tar.gz
inspircd++-9bc04a302572eb311a147a32ff1d36f1d91f2d7a.tar.bz2
inspircd++-9bc04a302572eb311a147a32ff1d36f1d91f2d7a.zip
userrec and chanrec now have their own independent pointer back to their 'creator' InspIRCd* object, extern now longer required in channels.cpp or users.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4820 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index fad2409dc..426859390 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -28,7 +28,8 @@ using namespace std;
#include "inspircd.h"
static Server *Srv;
-
+extern InspIRCd* ServerInstance;
+
class TimedBan : public classbase
{
public:
@@ -172,7 +173,7 @@ class ModuleTimedBans : public Module
// back to, so we create it a fake user that isnt in the user
// hash and set its descriptor to FD_MAGIC_NUMBER so the data
// falls into the abyss :p
- userrec* temp = new userrec;
+ userrec* temp = new userrec(ServerInstance);
temp->fd = FD_MAGIC_NUMBER;
temp->server = "";
Srv->SendMode(setban,3,temp);