diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-28 20:16:31 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-28 20:16:31 +0000 |
commit | 2b3d8e3d1841425af7412b3bf25657cf334c0175 (patch) | |
tree | 9c08fc1536f9e6f924c4bd2b0a3bfa2ee75d6f4e /src/modules.cpp | |
parent | 4599328e31c71958e0c3086980d1470859307b10 (diff) |
Fix empty FMODE being sent if SendMode mode changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12323 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 529e88b07..58c27e490 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -524,6 +524,14 @@ void InspIRCd::SendMode(const std::vector<std::string>& parameters, User *user) this->Modes->Process(parameters, user); } + +void InspIRCd::SendGlobalMode(const std::vector<std::string>& parameters, User *user) +{ + Modes->Process(parameters, user); + if (!Modes->GetLastParse().empty()) + this->PI->SendMode(parameters[0], Modes->GetLastParseParams(), Modes->GetLastParseTranslate()); +} + bool InspIRCd::AddResolver(Resolver* r, bool cached) { if (!cached) |