Anope IRC Services
Anope Support => 2.0.x/1.9.x Support => Topic started by: Xabier on October 14, 2014, 03:09:11 PM
-
If I have a register user, and your account expires anope send some event in this moment?
-
<~DukePyrolator> can someone please translate this forum post for me ?
<%chaz> DukePyrolator: he wants an event when a nick expires
/** Called before a nick expires
* @param na The nick
* @param expire Set to true to allow the nick to expire
*/
virtual void OnPreNickExpire(NickAlias *na, bool &expire) { throw NotImplementedException(); }
/** Called when a nick drops
* @param na The nick
*/
virtual void OnNickExpire(NickAlias *na) { throw NotImplementedException(); }
We already have such an event. :-)
-
THanks for your help and for channels expired ?
-
All events are listed in anope-2.0/include/modules.h
/** Called before a channel expires
* @param ci The channel
* @param expire Set to true to allow the chan to expire
*/
virtual void OnPreChanExpire(ChannelInfo *ci, bool &expire) { throw NotImplementedException(); }
/** Called before a channel expires
* @param ci The channel
*/
virtual void OnChanExpire(ChannelInfo *ci) { throw NotImplementedException(); }
-
thanks, for your help :)