X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodes%2Fumode_w.cpp;h=32fbe9e763ccf0ad1b5f5d225c6d22185fa24fb1;hb=32a26fa539242d009ffab01e09cafdaba9270dac;hp=8cfbf8fd24df6d9cab091cbba0cec6b88a386c10;hpb=3f389a4bd951cbf6f8ca139473647eaae0447322;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modes/umode_w.cpp b/src/modes/umode_w.cpp index 8cfbf8fd2..32fbe9e76 100644 --- a/src/modes/umode_w.cpp +++ b/src/modes/umode_w.cpp @@ -1,14 +1,27 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + #include "inspircd.h" #include "mode.h" #include "channels.h" #include "users.h" #include "modes/umode_w.h" -ModeUserWallops::ModeUserWallops() : ModeHandler('w', 0, 0, false, MODETYPE_USER, false) +ModeUserWallops::ModeUserWallops(InspIRCd* Instance) : ModeHandler(Instance, 'w', 0, 0, false, MODETYPE_USER, false) { } -ModeAction ModeUserWallops::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) +ModeAction ModeUserWallops::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding, bool servermode) { /* Only opers can change other users modes */ if ((source != dest) && (!*source->oper)) @@ -24,3 +37,8 @@ ModeAction ModeUserWallops::OnModeChange(userrec* source, userrec* dest, chanrec /* Allow the change */ return MODEACTION_DENY; } + +unsigned int ModeUserWallops::GetCount() +{ + return count; +}