Simple Akick Commands

By ItZz MaRk on Jun 14, 2008

hey well this is my first snippet and I'm new to scripting so don't be to harsh but, this snippet could be very useful it includes every thing you need to mange s channel's akick list and a little more to see the commands all you have to do is type !akcommands it's pretty self explanatory from there. Enjoy :)

on *:text:!kill*:#:{ 
  msg chanserv kick $chan $2
  msg $chan $2 was killed by $nick
}    
on *:text:!overkill*:#:{
  msg $chan $2 was overkilled by $nick
  msg chanserv akick $chan add $2-
}    
on *:text:!akclear:#:{
  msg chanserv akick $chan clear
  msg $chan Akick list cleared by $nick
} 
on *:text:!akenforce:#:{
  msg chanserv akick $chan enforce
  msg $chan Akick Enforced by $nick
}

on *:text:!akstick*:#:{
  msg chanserv akick $chan stick $2
  msg $chan Akick stick Command used by $nick
}
on *:text:!akunstick*:#:{
  msg chanserv akick $chan unstick $2
  msg $chan Akick unstick Command used by $nick
}
on *:text:!akdel*:#:{
  msg chanserv akick $chan del $2
  msg $chan Akick del $2 Command used by $nick
}
on *:text:!akcommands:#:{
  msg $nick Akick Commands are:!kill<nick>-kicks user.
  msg $nick !overkill<nick>-kicks user and adss to akick list.
  msg $nick !akclear- clears the akick list.
  msg $nick !akenforce-enforces the akick.
  msg $nick !akstick<nick>-command permanently bans the given mask on the channel. If someone tries to remove the ban, ChanServ will automatically set it again. You can't use it for registered nicks.
  msg $nick !akunstick<nick>- cancels the effctive of akick stick.
  msg $nick !akdel<nick>- Deletes given name from akick list.
}

Comments

Sign in to comment.
DJA14   -  Jul 06, 2008

Use $left($nick(#,$nick).pnick,1) to find out what a person is.
eg. if ($left($nick(#,$nick).pnick,1) == $chr(126))
if (Sygil of person) is (~) ...

 Respond  
Korvin   -  Jun 14, 2008

there isnt any protection, so anyone could akick anyone

 Respond  
Cheiron   -  Jun 14, 2008

you need to make sure that the op level is high enough. a normal op (AOP) indicated by the symbol @ cannot akick. only the room admin (SOP) indicated by the icon & or owner ondicated by the symbol ~ can do them.

i am not too sure how to check for those levels however. as for the normal op.. criminal has it there

 Respond  
ItZz MaRk   -  Jun 14, 2008

so yea like i said im new to scripting so how would i use op checker

on :text:!overkill:#:{if
(($nick isop $chan) && ($me isop $chan))
msg $chan $2 was overkilled by $nick
msg chanserv akick $chan add $2-
}
like that or something i dont really know =/

 Respond  
criminal   -  Jun 14, 2008

Yup, add an Op checker :P even people without access can now akick any other person :o

if (($nick isop $chan) && ($me isop $chan)) {

 Respond  
ItZz MaRk   -  Jun 14, 2008

ok i will get to work on fixing thxs for support

 Respond  
Cheiron   -  Jun 14, 2008

remember ONLY a SOP or OWNER can set an akick. might be worth also adding the op check there also for the various levels. otherwise, it seems to be ok.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.