Simple Channel Mode Script

By Kurama_ on Apr 30, 2009

Okay, I just felt like posting one of my scripts that I made a while back. Yes I know it's very noobish looking and could have been made using regex and all that (I'm still learning to use regex =x) so don't start bashing me on how I should have made it, just rate it on how it preforms. =\ Just let you know that these are not all the channel modes. These are the main channel modes that I use so it was just really made for me. Feel free to customize it all you want. Okay, to use this all you have to do is copy the code, click your Scripts Editor button, paste the code in the remotes and save it. Then you click the Users tab in your Scripts Editor window and make sure to add yourself as master. For example master:YourNicknameHere>!*@ (make sure to type that withought the "<>'s" It would look something like this master:Kurama_!@blah.blah.wtf.boom . Or if you're not the type of person that sticks to one name just change it to master:!*@blah.blah.wtf.boom that way it will only look for your IP address. Okay that's it for my long winded description. Remember, don't waste your breath telling me how I should have made the script. x.x

on @master:TEXT:*:#: {
  if (+m iswm $1) || (+p iswm $1) || (+s iswm $1) || (+t iswm $1) || (+i iswm $1) { 
    set %mode2 $1
    .mode $chan %mode2 
  }
  else {
    if (-m iswm $1) || (-p iswm $1) || (-s iswm $1) || (-t iswm $1) || (-i iswm $1) || (-l iswm $1) || (-k iswm $1) {
      set %mode2 $1
      .mode $chan %mode2
    }
    else {
      if (+k iswm $1) {
        set %mode2 $1
        .mode $chan %mode2 $$2- 
      }
      else {
        if (+l iswm $1) {
          set %mode2 $1
          .mode $chan %mode2 $$2-
        }
        else {
          if (+v iswm $1) || (+h iswm $1) || (+o iswm $1) || (+a iswm $1) || (+q iswm $1) {
            set %mode2 $1
            .mode $chan %mode2 $2
          }
          else {
            if (-v iswm $1) || (-h iswm $1) || (-o iswm $1) || (-a iswm $1) || (-q iswm $1) {
              set %mode2 $1
              .mode $chan %mode2 $2

            }
          }
        }
      }
    }
  }
}

Comments

Sign in to comment.
terrorist   -  Oct 09, 2011

hi , can anyone tell me auto reply script when someone change his/her nick name?

 Respond  
Aucun50   -  May 02, 2009

I like it but try elseif or if your trying to have them all be checked do if for everyone.

 Respond  
PATX   -  May 01, 2009

i jus go around looking for new scripts rate/comment.

 Respond  
Kurama_   -  May 01, 2009

I find it funny how you're the only one responding... ;-;

 Respond  
PATX   -  Apr 30, 2009

rating: 5
reason: good script. like the point. code pretty good eg not sloppy.

 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.