]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Added xline.cpp and xline.h, implements k/g/z/q lines
[user/henk/code/inspircd.git] / src / modules.cpp
index 59833b6bd2bddd2d5466dece4a6ba2e7dcc63819..7d81a9125ceb80ad67890637661faaf730c467b6 100644 (file)
@@ -14,6 +14,7 @@
 #include "wildcard.h"
 #include "mode.h"
 #include "message.h"
+#include "commands.h"
 
 // class type for holding an extended mode character - internal to core
 
@@ -125,6 +126,7 @@ void Module::OnInfo(userrec* user) { };
 void Module::OnWhois(userrec* source, userrec* dest) { };
 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string text) { return 0; };
 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string text) { return 0; };
+int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; };
 
 // server is a wrapper class that provides methods to all of the C-style
 // exports in the core
@@ -177,6 +179,11 @@ void Server::QuitUser(userrec* user, std::string reason)
        kill_link(user,reason.c_str());
 }
 
+bool Server::IsUlined(std::string server)
+{
+       return is_uline(server.c_str());
+}
+
 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user)
 {
        call_handler(commandname.c_str(),parameters,pcnt,user);