diff options
| author | 2006-08-09 18:55:52 +0000 | |
|---|---|---|
| committer | 2006-08-09 18:55:52 +0000 | |
| commit | 9bc04a302572eb311a147a32ff1d36f1d91f2d7a (patch) | |
| tree | 847f867baeefde36c133387b578aa937c37b4360 /src/modules/m_saquit.cpp | |
| parent | Move tons more stuff into class InspIRCd (diff) | |
| download | inspircd++-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_saquit.cpp')
| -rw-r--r-- | src/modules/m_saquit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index 3c9d95189..dd02d4e41 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -36,6 +36,7 @@ using namespace std; /* $ModDesc: Provides support for an SAQUIT command, exits user with a reason */ static Server *Srv; +extern InspIRCd* ServerInstance; class cmd_saquit : public command_t { @@ -64,7 +65,7 @@ class cmd_saquit : public command_t line = line + std::string(parameters[pcnt-1]); Srv->SendOpers(std::string(user->nick)+" used SAQUIT to make "+std::string(dest->nick)+" quit with a reason of "+line); - userrec::QuitUser(dest, line); + userrec::QuitUser(ServerInstance, dest, line); } } }; |
