From cbc730ec3bd2c080d08fa735af58ffd871b55ca4 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 5 Apr 2004 16:06:32 +0000 Subject: Added support for OnWhois, OnOper, OnInfo and SendToModeMask in the API git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@388 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 8ff5874af..5bea5133f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -117,6 +117,9 @@ void Module::OnServerRaw(std::string &raw, bool inbound) { } int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname) { return 0; } bool Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms) { } Version Module::GetVersion() { return Version(1,0,0,0); } +void Module::OnOper(userrec* user) { }; +void Module::OnInfo(userrec* user) { }; +void Module::OnWhois(userrec* source, userrec* dest) { }; // server is a wrapper class that provides methods to all of the C-style // exports in the core @@ -135,6 +138,11 @@ void Server::SendOpers(std::string s) WriteOpers("%s",s.c_str()); } +void Server::SendToModeMask(std::string modes, int flags, std::string text) +{ + WriteMode(modes.c_str(),flags,"%s",text.c_str()); +} + void Server::Log(int level, std::string s) { log(level,"%s",s.c_str()); -- cgit v1.3.1-10-gc9f91