Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: Xabier on October 14, 2014, 03:09:11 PM

Title: event expires account for user
Post 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?
Title: Re: event expires account for user
Post by: Jens Voss on October 14, 2014, 03:18:10 PM
<~DukePyrolator> can someone please translate this forum post for me ?
 <%chaz> DukePyrolator: he wants an event when a nick expires

Code: [Select]
        /** 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. :-)
Title: Re: event expires account for user
Post by: Xabier on October 14, 2014, 03:21:07 PM
THanks for your help and for channels expired ?
Title: Re: event expires account for user
Post by: Jens Voss on October 14, 2014, 03:24:14 PM
All events are listed in  anope-2.0/include/modules.h

Code: [Select]

        /** 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(); }

Title: Re: event expires account for user
Post by: Xabier on October 14, 2014, 03:30:02 PM
thanks, for your help  :)