mIRC Home    About    Download    Register    News    Help

Print Thread
on join event - to lock channel #193848 26/01/08 07:33 PM
Joined: Dec 2002
Posts: 145
G
gemeau50 Offline OP
Vogon poet
OP Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
I am on Undernet. Is there a way to differentiate through an "on join event" a mass join due to the return of a split server versus a regular mass join?

TX in advance

Re: on join event - to lock channel [Re: gemeau50] #193849 26/01/08 07:48 PM
Joined: Dec 2002
Posts: 2,028
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,028

You would be safe to set a limit (+l) or key (+k) or invite only (+i) or all of those to lock the channel because clients that are re-joining from a netsplit will bypass those modes, no modes can stop clients re-joining from a netsplit from joining. But to answer your exact question, no there really is no difference between the two, aside from what I've already pointed out.

Re: on join event - to lock channel [Re: gemeau50] #193852 26/01/08 08:36 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
An on join event for a re-connecting netsplit and a user joining the channel?

No, no way to differentiate.

However, for the netsplit, though, which may be an on quit event, you would have to store the quit message, then, when the users rejoin, you would have to if the statements and while loop variable check, and then unset them all.

Which could be a lot of work.

-Neal.

Re: on join event - to lock channel [Re: gemeau50] #193857 26/01/08 09:10 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Depending what you are trying to do, you can check the number of joins within 1 second. If the number is > something such as 5, you can assume it's a rejoin from a netsplit. Like I said, this all depends on what you're trying to do. If you just want to know for sure if it's a netsplit rejoin or not, this won't help as you can have 1 person rejoin from a netsplit. But if you just want to lock the channel if more than X people join in something like 5 seconds or something like that, you can use this idea to ignore it if all those people join in 1 second.


Invision Support
#Invision on irc.irchighway.net
Re: on join event - to lock channel [Re: RoCk] #193860 26/01/08 09:23 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Ah, since a netsplit is not affected by a +l, +k, or +i, as Rock said, then you have nothing to lose about setting those modes.

The only thing you don't do is /kick. Efnet #mIRC has that problem with Modoc's script during a netsplit. So set those +l <Number>, +k, or +i modes, and don't kick anyone, then use artificial intelligence to kick out those that were not part of the netsplit.

And if you asked me, I would say +l <Number> is the best, so you could allow *some* users to join.

-Neal.