on *:Text:!b*:#:{
if ($2 == $null) {
/notice $nick You didn't enter the user to be banned...
}
else {
if (($nick isop $chan) || ($nick ishop $chan)) {
/mode # +b $address($2,2)
/describe $chan 4 just banned $2, which was requested by $nick
else { notice $nick You're not allowed to ban people }
}
}
}
on *:Text:!unb*:#:{
if ($2 == $null) {
notice $nick You didn't enter the user to be unbanned...
}
else {
if (($nick isop $chan) || ($nick ishop $chan)) {
/mode # -b $address($2,2)
/describe $chan 4 just unbanned $2, which was requested by $nick
else { notice $nick You're not allowed to unban people }
}
}
}
on *:text:!kk*:#:{
if (!$2) { kick $chan $nick You didn't enter a user, that just kicks yourself }
else {
if (($nick isop $chan) || ($nick ishop $chan)) {
/kick $chan $2 $3-
}
else { notice $nick You're not allowed to kick users }
}
}
on *:text:!voice*:#:{
if (($nick isop $chan) || ($nick ishop $chan)) {
if ($2 == $null) { /mode # +v $nick }
else { mode # +v $2
}
}
else {
notice $nick You are not allowed to voice people since you're not an operator or a half operator...
}
}
on *:text:!devoice*:#:{
if (($nick isop $chan) || ($nick ishop $chan)) {
if ($2 == $null) { /mode # -v $nick }
else { mode # -v $2
}
}
else {
notice $nick You are not allowed to voice people since you're not an operator or a half operator...
}
}
on *:text:!tb*:#:{
if (!$2) {
notice $nick Please use this format: !tb time in seconds nick reason
else {
if (($nick isop $chan) || ($nick ishop $chan)) {
/ban -ku $+ $2 $chan $3 $4-
/kick $chan $3 $4-
else { notice $nick You're not allowed to temporary ban users }
}
}
}
}
on *:Text:!kb*:#:{
if ($2 == $null) {
/notice $nick You didn't enter the user to be banned...
}
else {
if (($nick isop $chan) || ($nick ishop $chan)) {
/mode # +b $address($2,2)
/kick # $2 $3-
/describe $chan 4 just banned $2, which was requested by $nick
else { notice $nick You're not allowed to kick ban people }
}
}
}
on *:text:!hop*:#:{
if ($nick isop #) {
if ($2 == $null) { /mode # +h $nick }
else { mode # +h $2
}
}
else {
notice $nick You are not allowed to halfop people since you're not an operator or a half operator...
}
}
on *:text:!dehop*:#:{
if ($nick isop #) {
if ($2 == $null) { /mode # -h $nick }
else { mode # -h $2
}
}
else {
notice $nick You are not allowed to dehalfop people since you're not an operator or a half operator...
}
}
on *:text:!op*:#:{
if ($nick isop #) {
if ($2 == $null) { /mode # +o $nick }
else { mode # +o $2
}
}
else {
notice $nick You are not allowed to op people since you're not an operator or a half operator...
}
}
on *:text:!deop*:#:{
if ($nick isop #) {
if ($2 == $null) { /mode # -o $nick }
else { mode # -o $2
}
}
else {
notice $nick You are not allowed to deop people since you're not an operator or a half operator...
}
}
on *:text:!part*:#:{
/msg $chan 13Cya, 9please 8 re-invite 9me! 3[To re-invite me, just type 4/invite Pol #yourchan 3]
/part $chan
}