summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 10:22:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 10:22:01 +0000
commitde094dc10486d380e692fec970cb01ccd33ded41 (patch)
treecd5061b946439ab83bf50f43f134991ee11843b3 /src/modules.cpp
parent7b93adfd363d4620edba7e984936b47123272129 (diff)
Removed mesh module functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1934 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp50
1 files changed, 5 insertions, 45 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index a77d94d7c..9f6421fec 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -350,7 +350,6 @@ void Module::OnStats(char symbol) { };
int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; };
int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; };
int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; };
-int Module::OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port) { return 0; };
void Module::OnEvent(Event* event) { return; };
char* Module::OnRequest(Request* request) { return NULL; };
int Module::OnOperCompare(std::string password, std::string input) { return 0; };
@@ -375,6 +374,11 @@ Server::~Server()
{
}
+void Server::AddSocket(InspSocket* sock)
+{
+ module_sockets.push_back(sock);
+}
+
void Server::SendOpers(std::string s)
{
WriteOpers("%s",s.c_str());
@@ -767,50 +771,6 @@ bool Server::IsValidMask(std::string mask)
return true;
}
-void Server::MeshSendAll(std::string text)
-{
- NetSendToAll((char*)text.c_str());
-}
-
-void Server::MeshSendCommon(userrec* user, std::string text)
-{
- if (user)
- NetSendToCommon(user,(char*)text.c_str());
-}
-
-void Server::MeshSendAllAlive(std::string text)
-{
- NetSendToAllAlive((char*)text.c_str());
-}
-
-void Server::MeshSendUnicast(std::string destination, std::string text)
-{
- NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
-}
-
-void Server::MeshSendAllExcept(std::string target, std::string text)
-{
- NetSendToAllExcept(target.c_str(),(char*)text.c_str());
-}
-
-bool Server::MeshCheckChan(chanrec *c,std::string servername)
-{
- if (c)
- {
- return ChanAnyOnThisServer(c,(char*)servername.c_str());
- }
- else return false;
-}
-
-bool Server::MeshCheckCommon(userrec* u,std::string servername)
-{
- if (u)
- {
- return CommonOnThisServer(u,(char*)servername.c_str());
- }
- else return false;
-}
-
Module* Server::FindModule(std::string name)
{
for (int i = 0; i <= MODCOUNT; i++)