mIRC Homepage

Update IAL

Posted By: Tiago

Update IAL - 09/01/19 01:45 AM

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!
Posted By: RoCk

Re: Update IAL - 09/01/19 02:46 AM

Try the /ialfill command.
Posted By: Raccoon

Re: Update IAL - 09/01/19 03:24 AM

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
Posted By: Tiago

Re: Update IAL - 09/01/19 07:56 PM

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.
Posted By: Raccoon

Re: Update IAL - 10/01/19 01:11 AM

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
Posted By: Tiago

Re: Update IAL - 10/01/19 08:42 PM

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
© 2019 mIRC Discussion Forums