mIRC Home    About    Download    Register    News    Help

Print Thread
#264744 09/01/19 01:45 AM
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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!

Last edited by Tiago; 09/01/19 01:55 AM.

TECO
irc.PTirc.org (Co-Admin)
TECO #264745 09/01/19 02:46 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Try the /ialfill command.

TECO #264747 09/01/19 03:24 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Raccoon #264756 09/01/19 07:56 PM
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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 (Co-Admin)
TECO #264759 10/01/19 01:11 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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

Last edited by Raccoon; 10/01/19 01:25 AM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Raccoon #264767 10/01/19 08:42 PM
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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 (Co-Admin)

Link Copied to Clipboard