From 9bc04a302572eb311a147a32ff1d36f1d91f2d7a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 18:55:52 +0000 Subject: 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 --- src/modules/m_sanick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_sanick.cpp') diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index 1299332fe..db35b9ba5 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -25,6 +25,7 @@ using namespace std; /* $ModDesc: Provides support for SANICK command */ +extern InspIRCd* ServerInstance; static Server *Srv; class cmd_sanick : public command_t @@ -54,7 +55,7 @@ class cmd_sanick : public command_t if (!source->ForceNickChange(parameters[1])) { /* We couldnt change the nick */ - userrec::QuitUser(source, "Nickname collision"); + userrec::QuitUser(ServerInstance, source, "Nickname collision"); return; } } -- cgit v1.2.3