diff options
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); } |