Update: I added a alias to display the commands that can be used. Type /Jcommands to view them
Update: I added a unban command
Update: I changed the nick commands so if you want to op, halfop, or voice your self just type +/-o for op or deop, +/-h for halfop or de-halfop, and +/-v for voice or devoice.
alias Jcommands {
echo -a 14 The available channel commands are: 7+/-i14,7 +/-l <limit>14, 7+/-m14, 7+/-p14, 7+/-R14, 7+/-s14, 7+/-k <key>14, 7.i <nick>14, 7.akick <nick> <reason>14, 7.delakick <nick>14, 7.akicklist14, 7.add <nick> <access level>14, 7.del <nick>14, 7.access14.
echo -a 14 The available nick commands are: 7+/-o <nick>14, 7 +/-h <nick>14, 7+/-v <nick>14, 7.kb <nick>14, 7.ban <nick>14, 7.tkb <nick> <time>14, 7.k <nick>14, 7+/-q <nick>14, 7.unban <nick>14.
}
on *:input:#: {
if ($regex($1,/^[+-][ceIfijklmnpstzCGMKLNQRSTu]$/)) { mode $chan $1- }
if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) }
if ($1 == .kb) { ban -k $chan $2 }
if ($1 == .ban) { mode $chan +b $address($2,2) }
if ($1 == .tkb) { ban -ku $+ $2 $chan $2 14 You have been banned for7 $3 14Seconds from7 $chan $+ 14. }
if ($1 == .i) { invite $2 $chan }
if ($1 == .k) { kick $chan $2 }
if ($1 == .akick) { msg ChanServ akick $chan add $2 $3 }
if ($1 == .delakick) { msg ChanServ akick $chan del $2 }
if ($1 == .akicklist) { msg Chanserv akick $chan list }
if ($1 == .add) { cs access $chan add $2 $3 }
if ($1 == .access) { cs access $chan list }
if ($1 == .del) { cs access $chan del $2 }
if ($1 == .unban) { mode $chan -b $address($2,2) }
}
on ur ban\'s you are just banning the nick so all the person has to do is change nicks and come back maybe do
if ($1 == .ban) { mode $chan +b $address($2,2) }
same thing for unban
if ($1 == .unban) { mode $chan -b $address($2,2) }
and on ur kickban
if ($1 == .kb) { ban -k $chan $2 2 }
you can also shorten some of the code by useing regex ex:
on *:input:*: {
if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) }
if ($regex($1,/^[+-][impRslk]$/)) { mode $chan $1- }
}