1
2
3
4
5
6
7
8
9
10
11
12
13
|
elseif %cmd == ban {
If ((%gnick >= 3) || (%cnick >= 3)) {
If ($me isop $chan) {
if ((!$3) && ($2)) { inc %nrkick | mode $chan +b $address($2,0 | kick $chan $2 Banned ( $+ $address($2,4) (ID: %nrkick $+ ) }
elseif (!$3) { inc %nrkick | mode $chan +b $address($2,0) | kick $chan $2 Banned ( $+ $address($2,4) ( $+ $3- $+ , ID: %nrkick $+ ) }
elseif (!$2) { notice $nick Usage: *ban nick reason }
elseif ($2 !ison $chan) { notice $nick $2 is not on the channel }
}
else { notice $nick Channel flag +o is required to use this command. }
}
elseif (!%nolevel. [ $+ [ $nick ] ]) { set -u20 %nolevel. [ $+ [ $nick ] ] 1 | notice $nick Insufficient privileges. }
}
|