1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
elseif (%cmd == invite) {
if (%gnick >= 4) {
if (!$3) { goto next2 | halt }
elseif ($2) { goto next1 | halt }
:next1
if (#* !iswm $3) { notice $nick Channels begin with an # + channelname | return }
if ($me !isop $3) { notice $nick I need op on $3 to perform this command | return }
if ($2 ison $3) { notice $nick $2 is already on $3 | return }
else { invite $2 $3 | notice $nick Done. | halt }
:next2
if ($me !isop $chan) { notice $nick I need op to perform this command | return }
if ($2 ison $chan) { notice $nick $2 is already on the channel | return }
else { invite $2 $chan | notice $nick Done. | halt }
}
elseif (!%nolevel. [ $+ [ $nick ] ]) { set -u20 %nolevel. [ $+ [ $nick ] ] 1 | notice $nick Insufficient privileges. }
} |