Hoi,
Ik vond het volgende script op mircscripts.org
Hoe gebruik ik deze? Ik neem aan dat ik deze in mn remote moet zetten dus dat heb ik gedaan.
De benodigde variables heb ik al aangemaakt maar ik snap niet hoe ik t script start.
Op de website van de auteur is weinig te vinden over dit script.
Ik vond het volgende script op mircscripts.org
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| ;==================================================================
; Channel User Limiter
;==================================================================
; Author : Merlin (merlin@mishscript.de)
; Homepage: http://www.mishscript.de
; Date : November 2002
;==================================================================
; Variables used:
; %Offset = xx users above the actual user count
; %ControlChan = List of channels you monitor: #channel1,#channel2
; %AUpdate = Check every xx seconds (if you use the timer)
;------------------------------------------------------------------
; Call: chanlimit #ChannelName or use a timer call
; make a timer for each channel you want to monitor:
; .timerCL. [ $+ [ #channel ] ] 0 %AUpdate chanlimit #Channel
;------------------------------------------------------------------
alias chanlimit {
; We check if we have Op status and if the channel is in the
; list of monitored channels
IF (($me isop $1) && ($istok(%ControlChan,$1,44) == $true)) {
; We calculate the actual users on the channel and check if the
; result differs from the last setting
IF ($calc($nick($1,0) + %Offset) != %clim. [ $+ [ $1 ] ]) {
; We do a check if we should set a new value
IF ($chan($1).limit != $calc($nick($1,0) + %Offset)) {
; We finall set the new limit and store it as new setting
raw -q mode $1 +l $calc($nick($1,0) + %Offset)
SET %clim. [ $+ [ $1 ] ] $calc($nick($1,0) + %Offset)
}
}
}
}
;================================================================== |
Hoe gebruik ik deze? Ik neem aan dat ik deze in mn remote moet zetten dus dat heb ik gedaan.
De benodigde variables heb ik al aangemaakt maar ik snap niet hoe ik t script start.
Op de website van de auteur is weinig te vinden over dit script.
[ Voor 23% gewijzigd door Verwijderd op 08-05-2004 00:05 . Reden: Layoutverneuker verwijdert ]