Manual Mode Setter

By NightCrawler on Jun 17, 2008

Just type .m to set mode. This also has the ability to mass set mode. Ex: .m mMrR Will Set all modes. You can also remove modes by typing .m -. Ex. .m -mMrR

on *:input:#: {
  if ($1 == .m) { 
    mode $active $2-
  }
}

on *:input:#: {
  if ($1 == .m -) { 
    mode $active $2-
  }
}

Comments

Sign in to comment.
EL   -  Jun 24, 2008

*slaps steve >_>

 Respond  
Jonesy44   -  Jun 24, 2008

lol, napa only trying to help xDxD

napa = easily one of the best on here, don\'t be put off by his skills >.> ;D

 Respond  
napa182   -  Jun 24, 2008

er huh? i did what now? ffs

 Respond  
EL   -  Jun 24, 2008

Rofl@advertising wtf man you post to get feed back an help bettering you codes an coding skills and napa182 is one of the best there is so shouldn\'t take offense to his comments they arent to demean your work or spam his codes or anything of that nature only to show you a more efficient and cleaner way he hes found to pull off the code that you have made you dont have to change yur code or listen to suggestions but thats what it is is a suggestion to help YOU out.`-.-´

 Respond  
Jonesy44   -  Jun 24, 2008

also;

\"if ($1 == .m -) { \"

.m and - are two words .. how can $1 = two words?

 Respond  
Jonesy44   -  Jun 24, 2008

He\'s not advertising .. he\'s showing a better version, helping you.

 Respond  
NightCrawler   -  Jun 24, 2008

Well the $2- was ment to be the modes. That was the mass mode part. Dont advertise other snippets on my snippet. Your making ppl not like mine.

 Respond  
napa182   -  Jun 18, 2008

you can use regex ex:

if ($regex($1,/^[+-][impRslk]$/)) { mode $chan $1- }
 Respond  
LucSatise   -  Jun 18, 2008

would alos work for modes:

on *:INPUT:#:{
  if ($left($1,1) == +) { mode $active $1- }
  if ($left($1,1) == -) { mode $active $1- }
}
 Respond  
Jamiie   -  Jun 17, 2008

My on input snippet is good. :)

http://www.hawkee.com/snippet/4456/

 Respond  
Jamiie   -  Jun 17, 2008

I figured in $3 it would recognize something like i and I as case sensitive.

 Respond  
guest598594   -  Jun 17, 2008

edit: nvm I guess you could do $3 to do modes on someone else

 Respond  
Jamiie   -  Jun 17, 2008
on *:input:#: {
  if ($1 == .m) {
    if ($2 == +) {
      mode $chan + $+ $3
    }
    if ($2 == -) {
      mode $chan - $+ $3
    }
  }
}

Works just as well without the extra on input event.

 Respond  
guest598594   -  Jun 17, 2008

No need for the second on input. Besides, $1 can\'t equal \".m -\".

 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.