From 409e3a5c8439b0d22524aeb802b04be3b9983fc5 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Apr 2005 13:02:20 +0000 Subject: Added Module::OnSendList git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1072 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 44c91a47c..0e8a6a865 100644 --- a/include/modules.h +++ b/include/modules.h @@ -374,6 +374,16 @@ class Module : public classbase * any five second period, directly from the main loop of the server. */ virtual void OnBackgroundTimer(time_t curtime); + + /** Called whenever a list is needed for a listmode. + * For example, when a /MODE #channel +b (without any other parameters) is called, + * if a module was handling +b this function would be called. The function can then + * output any lists it wishes to. Please note that all modules will see all mode + * characters to provide the ability to extend each other, so please only output + * a list if the mode character given matches the one(s) you want to handle. + */ + virtual void OnSendList(userrec* user, chanrec* channel, char mode); + }; @@ -538,7 +548,7 @@ class Server : public classbase * so the above example would become '+aa one three' after processing. */ virtual bool AddExtendedListMode(char modechar); - + /** Adds a command to the command table. * This allows modules to add extra commands into the command table. You must place a function within your * module which is is of type handlerfunc: -- cgit v1.3.1-10-gc9f91