diff options
| author | 2006-08-10 23:53:48 +0000 | |
|---|---|---|
| committer | 2006-08-10 23:53:48 +0000 | |
| commit | d0b4bb3811458aa335857514e4cbb95d5c84f433 (patch) | |
| tree | e3a88027d3ef17a26a6d1535213244536ca4dcbd /src/modules/m_messageflood.cpp | |
| parent | Committing this as a rollback point - does not compile (diff) | |
Last of Server:: methods moved to InspIRCd::. Server:: removed.
This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc)
Next on the todo: Make command handlers have a ServerInstance (gank!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
| -rw-r--r-- | src/modules/m_messageflood.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 79ab10eef..145bc51a2 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -186,7 +186,7 @@ class MsgFlood : public ModeHandler class ModuleMsgFlood : public Module { - Server *Srv; + MsgFlood* mf; public: @@ -196,7 +196,7 @@ class ModuleMsgFlood : public Module { mf = new MsgFlood(ServerInstance); - Srv->AddMode(mf, 'f'); + ServerInstance->AddMode(mf, 'f'); } void ProcessMessages(userrec* user,chanrec* dest, const std::string &text) @@ -217,7 +217,7 @@ class ModuleMsgFlood : public Module parameters[0] = dest->name; parameters[1] = "+b"; parameters[2] = user->MakeWildHost(); - Srv->SendMode(parameters,3,user); + ServerInstance->SendMode(parameters,3,user); std::deque<std::string> n; /* Propogate the ban to other servers. * We dont know what protocol we may be using, |
