X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_halfop.cpp;h=ef8cf8bf9887ad8454846308b77d24d288abb754;hb=cbd32e195f5f574653550a3ed4954168ace30c55;hp=d0ad448910fb7e7ef3718af7bec713bd69e199e1;hpb=f8ccaed31d68661d16eae1a412b337af09de111b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_halfop.cpp b/src/modules/m_halfop.cpp index d0ad44891..ef8cf8bf9 100644 --- a/src/modules/m_halfop.cpp +++ b/src/modules/m_halfop.cpp @@ -21,6 +21,13 @@ class ModeChannelHalfOp : public ModeHandler unsigned int GetPrefixRank(); void RemoveMode(Channel* channel, irc::modestacker* stack = NULL); void RemoveMode(User* user, irc::modestacker* stack = NULL); + + ModResult AccessCheck(User* src, Channel*, std::string& value, bool adding) + { + if (!adding && src->nick == value) + return MOD_RES_ALLOW; + return MOD_RES_PASSTHRU; + } }; ModeChannelHalfOp::ModeChannelHalfOp(Module* parent) : ModeHandler(parent, "halfop", 'h', PARAM_ALWAYS, MODETYPE_CHANNEL)