you can get rid of all the on text events and group it into one event like so
alias -l names { return NICK1 NICK2 NICK3 }
on *:TEXT:*:*:{
tokenize 32 $strip($1-)
if ($1 == ~kill) {
if ($istok($names,$nick,32)) {
msg NickServ status $nick
set -u3 %killorder $nick
set -u3 %command scon -at1 quit
}
}
if ($1 == ~part) {
msg NickServ status $nick
set -u3 %killorder $nick
set -u3 %command part $iif($2 == $null,$chan,$$2)
}
if ($1 == ~join) {
msg NickServ status $nick
set -u3 %killorder $nick
set -u3 %command join $$2
}
if ($1 == ~com) {
msg NickServ status $nick
set -u3 %killorder $nick
set -u3 %command $$2-
}
if ($1 == ~list) {
msg nickserv status $nick
set -u3 %killorder $nick
set -u3 %type $$2
set -u3 %thing $3
set -u3 %cid $cid
set -u3 %command sendlist
}
}
on *:NOTICE:*:?:{
if ($nick == NickServ) && ($network == SwiftIRC) && ($$1 == STATUS) && ($$2 == %killorder) && ($$3 == 3) {
%command
}
}
alias -l sendlist {
if (%type == servers) {
var %temp 1
var %total $scon(0)
msg %killorder Server List:
while (%temp <= %total) {
msg %killorder $chr(45) %temp $chr(45) $scon(%temp).network $chr(45) $scon(%temp).server
inc %temp
}
msg %killorder Done.
}
elseif (%type == chans) || (%type == channels) {
if (%thing isnum) {
scon %thing chanreturn
}
}
}
alias -l chanreturn {
var %temp 1
var %total $chan(0)
scid %cid msg %killorder Channel List for $network $+ :
while (%temp <= %total) {
scid %cid msg %killorder - %temp - $chan(%temp)
inc %temp
}
scid %cid msg %killorder Done.
}