From 8c14f0f530c61fd4875131902937fba9f780adf7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Jan 2007 18:25:56 +0000 Subject: 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 --- include/u_listmode.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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 modelist; typedef std::vector 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 -- cgit v1.2.3