diff options
| author | Adam <Adam@anope.org> | 2017-03-19 18:36:03 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2017-03-19 18:36:03 -0400 |
| commit | 2a886acbedb6b6386dbff3e591b0d4035d516b2a (patch) | |
| tree | 765218b2fc476e9b1517d7f1e4aa78f57de87752 /modules/operserv | |
| parent | f237405a52f6b8efb606c5181ffe3bd75a6a6a8a (diff) | |
Get rid of relying on if(this) in WhoSends()
Diffstat (limited to 'modules/operserv')
| -rw-r--r-- | modules/operserv/mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/mode.cpp b/modules/operserv/mode.cpp index 84b4ba6fb..2dd9b899e 100644 --- a/modules/operserv/mode.cpp +++ b/modules/operserv/mode.cpp @@ -53,7 +53,7 @@ class CommandOSMode : public Command const Channel::ModeList chmodes = c->GetModes(); for (Channel::ModeList::const_iterator it = chmodes.begin(), it_end = chmodes.end(); it != it_end && c; ++it) - c->RemoveMode(c->ci->WhoSends(), it->first, it->second, false); + c->RemoveMode(nullptr, it->first, it->second, false); if (!c) { @@ -71,7 +71,7 @@ class CommandOSMode : public Command continue; for (size_t i = uc->status.Modes().length(); i > 0; --i) - c->RemoveMode(c->ci->WhoSends(), ModeManager::FindChannelModeByChar(uc->status.Modes()[i - 1]), uc->user->GetUID(), false); + c->RemoveMode(nullptr, ModeManager::FindChannelModeByChar(uc->status.Modes()[i - 1]), uc->user->GetUID(), false); } source.Reply(_("All modes cleared on \002{0}\002."), c->name); |
