mIRC Home    About    Download    Register    News    Help

Print Thread
#109136 26/01/05 05:40 AM
R
ricky_knuckles
ricky_knuckles
R
im looking to write something that sets the limit 2 higher than the number of people in the room when someone joins it will set it 2 higher than the new total
etc
i have seen it i just dont know how to go about doing it
just go ahead and point me in the right direction.
thanks,

#109137 26/01/05 06:03 AM
I
idk
idk
I
on !*:join:#channel:mode $chan +l $calc($nick(#channel,0) + 2)

#109138 26/01/05 06:08 AM
R
ricky_knuckles
ricky_knuckles
R
can i get a explanation of how this works
i mean i have a ball park idea but it wouldnt hurt me to learn a little more about $calc

Last edited by ricky_knuckles; 26/01/05 06:10 AM.
#109139 26/01/05 06:19 AM
I
idk
idk
I
$nick(#channel,0) returns the total users on #channel, so when a user joins #channel it will /mode #channel +l (total number of users + 2)

$calc does the adding part, type //echo -a $calc(2 + 2), it will return 4, u can do addition,subtraction,multiplication etc.. with $calc

#109140 26/01/05 06:20 AM
R
ricky_knuckles
ricky_knuckles
R
sets the limit to 2 every time

#109141 26/01/05 06:21 AM
I
idk
idk
I
replace #channel with the channel u want to use it in

#109142 26/01/05 06:25 AM
R
ricky_knuckles
ricky_knuckles
R
im aware of that

#109143 26/01/05 06:27 AM
I
idk
idk
I
works for me

#109144 26/01/05 06:31 AM
R
ricky_knuckles
ricky_knuckles
R
i got it
on !@*:join:#:{
mode $chan +l $calc($nick($chan,0) + 2)
}

#109145 26/01/05 10:21 AM
D
DaveC
DaveC
D
There is a script that does exactly this, its a channel join flood protector.

#109146 26/01/05 08:23 PM
R
ricky_knuckles
ricky_knuckles
R
ok... ?

#109147 26/01/05 08:41 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
You don't need the ! prefix there. It will be cancel it out. It will only trigger if you're an op by which you'll already be on the channel.

#109148 27/01/05 09:13 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
I was thinking... Is there a place where you can see what all the on !@*^: signs mean? I know there are more than the once i just wrote. I am asking because i allways use if ($nick == op) and that is kind of enoying when you can just type 1 or 2 signs :P

So if you can past me a link or type them yourself that would be nice laugh

#109149 27/01/05 09:43 AM
I
idk
idk
I
/help access levels

#109150 27/01/05 09:52 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
aaah Thank you mate laugh


Link Copied to Clipboard