mIRC Home    About    Download    Register    News    Help

Topic Options
#264744 - 09/01/19 01:45 AM Update IAL
Tiago Offline
Vogon poet

Registered: 05/07/14
Posts: 118
Hi,
Is there any way to update the IAL when we join a channel so that we can return the values through the identifier $ibl?

I know that through the command /mode $chan +b updates the list, but there is no other way without resorting to raws 367 and 368?

I also know that if we open the Channel Central /channel #channel the IAL will return the values from the list of banes, but there is no other way, since the Central Channel does not use raws 367 and 368.

Thank you!


Edited by Tiago (09/01/19 01:55 AM)
_________________________
TECO
irc.PTirc.org (IRCop)

Top
#264745 - 09/01/19 02:46 AM Re: Update IAL [Re: Tiago]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2010
Try the /ialfill command.

Top
#264747 - 09/01/19 03:24 AM Re: Update IAL [Re: Tiago]
Raccoon Online
Hoopy frood

Registered: 18/02/03
Posts: 2600
Actually, you mean the IBL (Internal Banlists). There isn't a built-in feature to auto fill them, but I've written a script to do as much. I'll link to it.

It has a bug with Unreal IRCd in that Unreal can only do one /mode flag at a time, and it uses +q for owner status instead of quiet list.

Sorry about the size, it's mostly the comments that make it long, but readable.

https://gist.github.com/a-raccoon/004dcff7c79bebd15d03387e7d2590bf
_________________________
Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Top
#264756 - 09/01/19 07:56 PM Re: Update IAL [Re: Raccoon]
Tiago Offline
Vogon poet

Registered: 05/07/14
Posts: 118
Originally Posted By: Raccoon
Actually, you mean the IBL (Internal Banlists). There isn't a built-in feature to auto fill them, but I've written a script to do as much. I'll link to it.

It has a bug with Unreal IRCd in that Unreal can only do one /mode flag at a time, and it uses +q for owner status instead of quiet list.

Sorry about the size, it's mostly the comments that make it long, but readable.

https://gist.github.com/a-raccoon/004dcff7c79bebd15d03387e7d2590bf

Thanks but a code of this size for something so simple?
I think there will be a simpler way to update Internal Banlists without needing such a large code.
_________________________
TECO
irc.PTirc.org (IRCop)

Top
#264759 - 10/01/19 01:11 AM Re: Update IAL [Re: Tiago]
Raccoon Online
Hoopy frood

Registered: 18/02/03
Posts: 2600
I can reduce the code to around 50 lines if I strip out all the comments and stack related code onto the same line. This code was intentionally written for learning.

The code is in fact very simple, while also being very considerate of preventing run-away flooding since there is a lot of server-demand on requesting this information when joined to many channels. Can't just ask for it all at once or you'll be disconnected.

Edit: I just uploaded a condensed version for you.

r_ialfill_auto_tiny.mrc


Edited by Raccoon (10/01/19 01:25 AM)
_________________________
Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Top
#264767 - 10/01/19 08:42 PM Re: Update IAL [Re: Raccoon]
Tiago Offline
Vogon poet

Registered: 05/07/14
Posts: 118
Originally Posted By: Raccoon
I can reduce the code to around 50 lines if I strip out all the comments and stack related code onto the same line. This code was intentionally written for learning.

The code is in fact very simple, while also being very considerate of preventing run-away flooding since there is a lot of server-demand on requesting this information when joined to many channels. Can't just ask for it all at once or you'll be disconnected.

Edit: I just uploaded a condensed version for you.

r_ialfill_auto_tiny.mrc

Thanks for all the help one more time. wink
_________________________
TECO
irc.PTirc.org (IRCop)

Top