X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodes%2Fumode_i.cpp;h=c33caa94d5676fb407496467723d6acf0244b7a5;hb=8509727e16f1d9ce6c9719c8d62c7715d3699858;hp=584a12ff5af043d7f1088b08fe2f1f2122b93df6;hpb=3f389a4bd951cbf6f8ca139473647eaae0447322;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modes/umode_i.cpp b/src/modes/umode_i.cpp index 584a12ff5..c33caa94d 100644 --- a/src/modes/umode_i.cpp +++ b/src/modes/umode_i.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_i.h" -ModeUserInvisible::ModeUserInvisible() : ModeHandler('i', 0, 0, false, MODETYPE_USER, false) +ModeUserInvisible::ModeUserInvisible(InspIRCd* Instance) : ModeHandler(Instance, 'i', 0, 0, false, MODETYPE_USER, false) { } -ModeAction ModeUserInvisible::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) +ModeAction ModeUserInvisible::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding) { /* Only opers can change other users modes */ if ((source != dest) && (!*source->oper)) @@ -24,3 +37,8 @@ ModeAction ModeUserInvisible::OnModeChange(userrec* source, userrec* dest, chanr /* Allow the change */ return MODEACTION_DENY; } + +unsigned int ModeUserInvisible::GetCount() +{ + return count; +}