summaryrefslogtreecommitdiff
path: root/src/modules/m_chanprotect.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 22:05:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 22:05:45 +0000
commitefda5071934b078dd939a53cde317e60a11ba401 (patch)
treeec9588ae9cdc99cbeea9ecdfe3f576fa5caf5526 /src/modules/m_chanprotect.cpp
parente1a92daeb657da58dcfcc2f1256193cb72295635 (diff)
Added OnSyncUser, OnSyncChannel, ProtoSendMode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2070 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r--src/modules/m_chanprotect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 0938dacb0..325a50a13 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -335,7 +335,7 @@ class ModuleChanProtect : public Module
return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
}
- virtual string_list OnChannelSync(chanrec* chan)
+ virtual void OnChannelSync(chanrec* chan, Module* proto, void* opaque)
{
// this is called when the server is linking into a net and wants to sync channel data.
// we should send our mode changes for the channel here to ensure that other servers
@@ -346,11 +346,11 @@ class ModuleChanProtect : public Module
{
if (cl[i]->GetExt("cm_founder_"+std::string(chan->name)))
{
- commands.push_back("M "+std::string(chan->name)+" +q "+std::string(cl[i]->nick));
+ proto->ProtoSendMode(opaque,TYPE_CHANNEL,chan,"+q "+std::string(cl[i]->nick));
}
if (cl[i]->GetExt("cm_protect_"+std::string(chan->name)))
{
- commands.push_back("M "+std::string(chan->name)+" +a "+std::string(cl[i]->nick));
+ proto->ProtoSendMode(opaque,TYPE_CHANNEL,chan,"+a "+std::string(cl[i]->nick));
}
}
return commands;