diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 18:25:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 18:25:56 +0000 |
commit | 8c14f0f530c61fd4875131902937fba9f780adf7 (patch) | |
tree | f730e76cedf72b0caeec84c7eb87c8201c7afbe7 /include | |
parent | 16e251d74a8fbd4e1f540cb950e1b85697e0c566 (diff) |
Added interface 'ChannelBanList' that these two modules implement. Send a request class ListModeRequest to the module to check if a user is matched on a channel:
const char* ismatched = ListModeRequest(this, targetmodule, someuser, somechan).Send();
ismatched will be NULL if theyre not matched by the modules list, or will contain the mask if they are matched.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6325 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/u_listmode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index f6e383051..eeda2dd8d 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -62,6 +62,21 @@ public: typedef std::vector<ListItem> modelist; typedef std::vector<ListLimit> limitlist; +class ListModeRequest : public Request +{ + public: + userrec* user; + chanrec* chan; + + ListModeRequest(Module* sender, Module* target, userrec* u, chanrec* c) : Request(sender, target, "LM_CHECKLIST"), user(u), chan(c) + { + } + + ~ListModeRequest() + { + } +}; + /** The base class for listmodes defined by u_listmode.h */ class ListModeBase : public ModeHandler |