Shutup Ban

By Crushed on Sep 15, 2010

if you set shutup ban on nick script will warn user.. if he continue script will kick . and on third time script will ban user

;shutup ban
alias unshutup {
  if ( %unshutup ) { cs akick %shutupchan del %unshutup
    Unset %*shutup*
  }
  else {
    Unset %*shutup*
  }
}

Menu Nicklist {
  Kick  
  .Shutup Bans:
  ..Shutup $$1: Set %shutupchan $active | Set %shutup $1 | msg $chan Just Shutup! $$1 
}

on *:TEXT:*:*: {
  If (%shutupchan == $chan ) && ( %shutup == $nick ) { 
    Inc %Shutup1 1
    If ( %shutup1 == 1 ) {  notice %shutupchan %shutup Last And Final Warning $logo }
    If ( %shutup1 == 2 ) {  kick %shutupchan  %shutup You were warned $logo | ban %shutupchan  %shutup | Unset %shutup* | Set %Unshutup $nick }
  }
}

Comments

Sign in to comment.
MaSOuD   -  Sep 15, 2010

I dunno if you stole this snippet or no. But:
1) There's no alias named "logo" in your snippet then you should put it in there or remove the $logo from your code.
2)

alias unshutup {
  if ( %unshutup ) { cs akick %shutupchan del %unshutup
    Unset %*shutup*
  }
  else {
    Unset %*shutup*
  }
}

It can be:

alias unshutup {
  if (%unshutup) { cs akick %shutupchan del %unshutup }
  unset %*shutup*
}

3) Also you can remove : from ".Shutup Bans:"

Good luck.

 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.