1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
on $*:text:/^!next(\s\S+)?$/i:#nationcup:{
if ($nick isop $chan) {
if (%round < $rounds) { inc %round | topic $chan Round = %round yada yada }
if (%round == $rounds) {
if ($2) { unset %round | topic $chan Cup finished winning team $2 }
else { msg $chan You've not specified the winning team. }
}
}
else { notice $nick You don't have access to that command. }
}
alias rounds {
var %x = %teams, %rounds
while (%x != 2) { var %x = $calc(%x /2) | inc %rounds }
return $calc(%rounds +1)
} |