Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: event expires account for user  (Read 3537 times)

0 Members and 1 Guest are viewing this topic.

Xabier

  • Anope User
  • Offline Offline
  • Posts: 13
event expires account for user
« 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?
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 123
Re: event expires account for user
« Reply #1 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. :-)
Logged

Xabier

  • Anope User
  • Offline Offline
  • Posts: 13
Re: event expires account for user
« Reply #2 on: October 14, 2014, 03:21:07 PM »

THanks for your help and for channels expired ?
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 123
Re: event expires account for user
« Reply #3 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(); }

Logged

Xabier

  • Anope User
  • Offline Offline
  • Posts: 13
Re: event expires account for user
« Reply #4 on: October 14, 2014, 03:30:02 PM »

thanks, for your help  :)
Logged
Pages: [1]   Go Up