Easy Modes

By Raid on Feb 08, 2006

Put in remotes.

See IceShaman's version Below.

on *:input:*: {
  if ($$1 === +c) { mode $active +c }
  if ($$1 === -c) { mode $active -c }
  if ($$1 === +I) { mode $active +I  }
  if ($$1 === -I) {  mode $active -I  }
  if ($$1 === +m) {   mode $active +m  }
  if ($$1 === -m) {   mode $active -m  }
  if ($$1 === +i) {    mode $active +i  }
  if ($$1 === -i) {    mode $active -i  }
  if ($$1 === +v) {    cs voice $active $me  }
  if ($$1 === +h) {    cs halfop $active $me  }
  if ($$1 === +o) {    cs op $active $me  }
  if ($$1 === +a) {    cs protect $active $me  }
  if ($$1 === +q) {    cs owner $active $me  }
  if ($$1 === -v) {    mode $active -v $me  }
  if ($$1 === -h) {    mode $active -h $me  }
  if ($$1 === -o) {    mode $active -o $me  }
  if ($$1 === -a) {    mode $active -a $me  }
  if ($$1 === -q) {    mode $active -q $me  }
  if ($$1 === +Q) {    mode $chan +Q  }
  if ($$1 === -Q) {    mode $chan -Q  }
  if ($$1 === +p) {    mode $chan +p  }
  if ($$1 === -p) {    mode $chan -p  }
  if ($$1 === +s) {    mode $chan +s  }
  if ($$1 === -s) {    mode $chan -s  }
  if ($$1 === +t) {    mode $chan +t  }
  if ($$1 === -t) {    mode $chan -t  }
  if ($$1 === +A) {    mode $chan +A  }
  if ($$1 === -A) {    mode $chan -A  }
  if ($$1 === +C) {    mode $chan +C  }
  if ($$1 === -C) {    mode $chan -C  }
  if ($$1 === +G) {    mode $chan +G  }
  if ($$1 === -G) {    mode $chan -G  }
  if ($$1 === +M) {    mode $chan +M  }
  if ($$1 === -M) {    mode $chan -M  }
  if ($$1 === +K) {    mode $chan +K  }
  if ($$1 === -K) {    mode $chan -K  }
  if ($$1 === +N) {    mode $chan +N  }
  if ($$1 === -N) {    mode $chan -N  }
  if ($$1 === +O) {    mode $chan +O  }
  if ($$1 === -O) {    mode $chan -O  }
  if ($$1 === +R) {    mode $chan +R  }
  if ($$1 === -R) {    mode $chan -R  }
  if ($$1 === +S) {    mode $chan +S  }
  if ($$1 === -S) {    mode $chan -S  }
  if ($$1 === +T) {    mode $chan +T  }
  if ($$1 === -T) {    mode $chan -T  }
  if ($$1 === +V) {    mode $chan +V  }
  if ($$1 === -V) {    mode $chan -V  }
  if ($$1 === +u) {    mode $chan +u  }
  if ($$1 === -u) {    mode $chan -u  }
}

Comments

Sign in to comment.
Raid   -  Feb 11, 2006

Cool, thanks Ice. I think I will drop my idea an just use what you made. I was just bored and wanted to be more lazy with these. I need to read up on how to script like that. Its way over my head. LOL

 Respond  
IceShaman   -  Feb 11, 2006

oh yeah and Raid, feel free to use my example code in whatever way you see fit, I\'m too lazy to post it as my own snippet.

 Respond  
IceShaman   -  Feb 10, 2006

on :input:: {
if ($regex($1,^(\+|-)([a-zA-Z])$)) {
var %sign = $regml(1), %mode = $regml(2)
if (%mode isincs cImi) { mode $active $1 }
elseif (%mode isincs vhoaq) {
if (%sign == +) { cs $replacex(%mode,v,voice,h,halfop,o,op,a,protect,q,owner) $active $me }
else { mode $active $1 $me }
}
elseif (%mode isincs QpstACGMKNORSTVu) { mode $active $1 $me }
halt
}
}

quick replacement for the snippet, includes checking to make sure $1 is in the exact format of + or - followed by 1 singular letter...

 Respond  
RoninWarrior   -  Feb 09, 2006

Lots of space issue\'s needing fixed.

 Respond  
Raid   -  Feb 08, 2006

Eh, I would ahve to go back through all this. Which would make that harder.

 Respond  
Corne   -  Feb 08, 2006

why \'if (o isin $1) { mode $active $1- } ?

 Respond  
KuTsuM   -  Feb 08, 2006

much easier way is
if (o isin $1) { mode $active $1- }

 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.