diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-27 02:33:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-27 02:33:00 +0000 |
commit | feb71850509a3a58ed0e355a779c1c94873cc117 (patch) | |
tree | 33b91def532574308958069e049b8e0332870a1f /include | |
parent | f4d202cdbbcaa9e17c21e3f74d7816f58b2ffc6a (diff) |
commit remainder of new mode bouncing stuff for TS based modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4550 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 2 | ||||
-rw-r--r-- | include/u_listmode.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index ce1c085ac..b248dfb3e 100644 --- a/include/mode.h +++ b/include/mode.h @@ -346,6 +346,8 @@ class ModeParser : public classbase * @param servermode True if a server is setting the mode. */ void Process(const char** parameters, int pcnt, userrec *user, bool servermode); + + ModeHandler* FindMode(unsigned const char modeletter, ModeType mt); }; /** diff --git a/include/u_listmode.h b/include/u_listmode.h index c7568897f..b656196e9 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -66,6 +66,7 @@ class ListModeBase : public ModeHandler std::pair<bool,std::string> ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) { + log(DEBUG,"ListMode: ModeSet()"); modelist* el; channel->GetExt(infokey, el); if (el) @@ -74,10 +75,12 @@ class ListModeBase : public ModeHandler { if(parameter == it->mask) { + log(DEBUG,"Found item %s",parameter.c_str()); return std::make_pair(true, parameter); } } } + log(DEBUG,"Didnt find item %s",parameter.c_str()); return std::make_pair(false, parameter); } |