summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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++)