summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-02 13:01:41 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-12 14:44:17 +0200
commit58d7827bb1bd3d90f38a1c199f6f41ae9f24885c (patch)
treed2613bd107ac6b00960e1981f184ee4160e5877f /src/listmode.cpp
parent7ba25076818e42b4eac9199477a01101cf57e848 (diff)
Send ListModeBase modes implicitly on channel sync
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 4ab15b2dc..3c9183ff7 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -204,28 +204,6 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std
}
}
-void ListModeBase::DoSyncChannel(Channel* chan, Module* proto, void* opaque)
-{
- ChanData* cd = extItem.get(chan);
- if (!cd)
- return;
-
- irc::modestacker modestack(true);
- std::vector<std::string> stackresult;
- std::vector<TranslateType> types;
- types.push_back(TR_TEXT);
-
- for (ModeList::iterator it = cd->list.begin(); it != cd->list.end(); it++)
- modestack.Push(mode, it->mask);
-
- while (modestack.GetStackedLine(stackresult))
- {
- types.assign(stackresult.size(), this->GetTranslateType());
- proto->ProtoSendMode(opaque, TYPE_CHANNEL, chan, stackresult, types);
- stackresult.clear();
- }
-}
-
bool ListModeBase::ValidateParam(User*, Channel*, std::string&)
{
return true;