]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Removed old OnUserSync and OnChannelSync
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 30 Nov 2005 22:13:47 +0000 (22:13 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 30 Nov 2005 22:13:47 +0000 (22:13 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2071 e03df62e-2008-0410-955e-edbf42e46eb7

include/modules.h
src/modules.cpp
src/modules/m_chanfilter.cpp
src/modules/m_chanprotect.cpp

index 008604d9fd1176c07f8d8296afdc1fffc9c2d877..ec49c90dc2cd1085f3e8897a6d02c2d41b4efa4c 100644 (file)
@@ -468,20 +468,6 @@ class Module : public classbase
         */
        virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type);
 
-       /** Called during a netburst to sync user data.
-        * This is called during the netburst on a per-user basis. You should use this call to up any special
-        * user-related things which are implemented by your module, e.g. sending listmodes. You may return
-        * multiple commands in the string_list.
-        */
-       virtual string_list OnUserSync(userrec* user);
-
-       /** Called during a netburst to sync channel data.
-        * This is called during the netburst on a per-channel basis. You should use this call to up any special
-        * channel-related things which are implemented by your module, e.g. sending listmodes. You may return
-        * multiple commands in the string_list.
-        */
-       virtual string_list OnChannelSync(chanrec* chan);
-
        /** Called when a 005 numeric is about to be output.
         * The module should modify the 005 numeric if needed to indicate its features.
         */
index 8a5fa052a8c4c7bdb59ccba1bffc3dd4155d6add..2dda2daf5e5c5fb5faeed082f95a48ae9c01a391 100644 (file)
@@ -327,8 +327,6 @@ int         Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::stri
 int            Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; };
 void           Module::OnUserPostNick(userrec* user, std::string oldnick) { };
 int            Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; };
-string_list    Module::OnUserSync(userrec* user) { string_list empty; return empty; }
-string_list    Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; }
 void           Module::On005Numeric(std::string &output) { };
 int            Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; };
 void           Module::OnLoadModule(Module* mod,std::string name) { };
index 3db636b3577e1736a82651015e438df99dea1c2f..5b36478b2bab3ed410cac290e2228304f6ac6809 100644 (file)
@@ -219,7 +219,6 @@ class ModuleChanFilter : public Module
                                proto->ProtoSendMode(opaque,TYPE_CHANNEL,chan,"+g "+*i);
                        }
                }
-               return commands;
        }
 
 };
index 325a50a130cabb6dc408722133e386ea702b9620..a9764f72e6db21642d4205a533342996fb80d8ef 100644 (file)
@@ -335,7 +335,7 @@ class ModuleChanProtect : public Module
                return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
        }
        
-       virtual void OnChannelSync(chanrec* chan, Module* proto, void* opaque)
+       virtual void OnSyncChannel(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
@@ -353,7 +353,6 @@ class ModuleChanProtect : public Module
                                proto->ProtoSendMode(opaque,TYPE_CHANNEL,chan,"+a "+std::string(cl[i]->nick));
                        }
                }
-               return commands;
        }
 
 };