diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-09-02 13:01:41 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-09-12 14:44:17 +0200 |
commit | 58d7827bb1bd3d90f38a1c199f6f41ae9f24885c (patch) | |
tree | d2613bd107ac6b00960e1981f184ee4160e5877f /include | |
parent | 7ba25076818e42b4eac9199477a01101cf57e848 (diff) |
Send ListModeBase modes implicitly on channel sync
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
Diffstat (limited to 'include')
-rw-r--r-- | include/listmode.h | 8 | ||||
-rw-r--r-- | include/modules.h | 13 |
2 files changed, 0 insertions, 21 deletions
diff --git a/include/listmode.h b/include/listmode.h index e6ca88d4c..75385588b 100644 --- a/include/listmode.h +++ b/include/listmode.h @@ -162,14 +162,6 @@ class CoreExport ListModeBase : public ModeHandler */ virtual ModeAction OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding); - /** Syncronize channel item list with another server. - * See modules.h - * @param chan Channel to syncronize - * @param proto Protocol module pointer - * @param opaque Opaque connection handle - */ - virtual void DoSyncChannel(Channel* chan, Module* proto, void* opaque); - /** Validate parameters. * Overridden by implementing module. * @param user Source user adding the parameter diff --git a/include/modules.h b/include/modules.h index d7b46ad48..e04ee01ff 100644 --- a/include/modules.h +++ b/include/modules.h @@ -670,19 +670,6 @@ class CoreExport Module : public classbase, public usecountbase virtual void OnDecodeMetaData(Extensible* target, const std::string &extname, const std::string &extdata); /** Implemented by modules which provide the ability to link servers. - * These modules will implement this method, which allows transparent sending of servermodes - * down the network link as a broadcast, without a module calling it having to know the format - * of the MODE command before the actual mode string. - * - * @param opaque An opaque pointer set by the protocol module, should not be modified! - * @param target_type The type of item to decode data for, TYPE_USER or TYPE_CHANNEL - * @param target The Channel* or User* that modes should be sent for - * @param modeline The modes and parameters to be sent - * @param translate The translation types of the mode parameters - */ - virtual void ProtoSendMode(void* opaque, TargetTypeFlags target_type, void* target, const std::vector<std::string> &modeline, const std::vector<TranslateType> &translate); - - /** Implemented by modules which provide the ability to link servers. * These modules will implement this method, which allows metadata (extra data added to * user and channel records using class Extensible, Extensible::Extend, etc) to be sent * to other servers on a netburst and decoded at the other end by the same module on a |