diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-22 15:51:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-22 15:51:06 +0000 |
commit | 02280596a038d1d7ad245a2c7808d57d80ab0a42 (patch) | |
tree | bab22a05250db57b6e37df75f7a9a09b20836ca2 /include | |
parent | 9295960ea1b6821fc8c03f4cc672f0e49215d750 (diff) |
Added OnChannelDelete() method (called on KICK, PART or QUIT where a channel is deleted for cleanup of metadata)
Added m_messageflood.so (not yet finished, do not use yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2826 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index cf7e8c52d..d920736a9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -285,7 +285,7 @@ enum Implementation { I_OnUserConnect, I_OnUserQuit, I_OnUserDisconnect, I_OnUse I_OnCheckKey, I_OnCheckLimit, I_OnCheckBan, I_OnStats, I_OnChangeLocalUserHost, I_OnChangeLocalUserGecos, I_OnLocalTopicChange, I_OnPostLocalTopicChange, I_OnEvent, I_OnRequest, I_OnOperCompre, I_OnGlobalOper, I_OnGlobalConnect, I_OnAddBan, I_OnDelBan, I_OnRawSocketAccept, I_OnRawSocketClose, I_OnRawSocketWrite, I_OnRawSocketRead, I_OnChangeLocalUserGECOS, I_OnUserRegister, - I_OnOperCompare }; + I_OnOperCompare, I_OnChannelDelete }; /** Base class for all InspIRCd modules * This class is the base class for InspIRCd modules. All modules must inherit from this class, @@ -340,6 +340,11 @@ class Module : public classbase */ virtual void OnUserDisconnect(userrec* user); + /** Called whenever a channel is deleted, either by QUIT, KICK or PART. + * @param chan The channel being deleted + */ + virtual void OnChannelDelete(chanrec* chan); + /** Called when a user joins a channel. * The details of the joining user are available to you in the parameter userrec *user, * and the details of the channel they have joined is available in the variable chanrec *channel |