mIRC Home    About    Download    Register    News    Help

Print Thread
#110417 07/02/05 01:49 AM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
i have tried numerous variations of this without any luck.
Code:
 alias cnicks {     
  if ($hget(ME,ME217) == On) { cnick -r $me | _me }
  if ($hget(ME,ME205) == On) { cnick -r @ | _op }
  if ($hget(ME,ME208) == On) { cnick -r % | _half }
  if ($hget(ME,ME211) == On) { cnick -r + | _voice }
  if ($hget(ME,ME214) == On) { cnick -rn * | _reg }
}
alias _me { cnick -am0s $me $hget(ME,ME218x) * }
alias _op { cnick -m0s * $hget(ME,ME206x) @ }
alias _half { cnick -m0s * $hget(ME,ME209x) % }
alias _voice { cnick -m0s * $hget(ME,ME212x) + }
alias _reg { cnick -nm0s * $hget(ME,ME215x) }
 

First i had an issue with adding % modes, now it deletes the @ mode on initializing. I tried numbering them but i want to avoid that so that custom user colors can also be used and untouched by this.( So you can still set user JOE as red and use this to set all other users to a default color according to mode ) Any ideas where im going wrong? Also this always initializes on script close with this on a sclick.
Code:
     if ($hget(ME,ME202) == On) { echo -s 4Nicklist Colors Updated! | cnicks } 

#110418 07/02/05 08:51 AM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
I kinda have it worked out.... i stretched it all out and tore it appart and came up with this.
Code:
 alias cnicks { 
  .cnick -ra $me  
  .cnick -ro * @  
  .cnick -r * %  
  .cnick -rv * +  
  .cnick -rn *
  if ($hget(ME,ME217) == On) {  _me }
  if ($hget(ME,ME205) == On) {  _op }
  if ($hget(ME,ME208) == On) {  _half }
  if ($hget(ME,ME211) == On) {  _voice }
  if ($hget(ME,ME214) == On) {  _reg }
}
alias _me { cnick -am0s $me $hget(ME,ME218x) * }
alias _op { cnick -m0o * $hget(ME,ME206x) @ }
alias _half { cnick -m0h * $hget(ME,ME209x) % }
alias _voice { cnick -m0v * $hget(ME,ME212x) + }
alias _reg { cnick -nm0 * $hget(ME,ME215x) }
 

Now o = ops v = voice.... so now half op would be? h?

#110419 07/02/05 07:47 PM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
Ok so if anyone is reading this , the network i go to doesnt support halfops so that was my problem.... When the server youre on doesnt support half ops and you try to set the cnick with this it sets halfops as Any nick, completly overpowering any other cnick settings. I jumped on a network i KNOW has halfops and it sets fine.... so now i just need to figure out a workaround for if a user sets for halfop modes but the network theyre on doent support it.

#110420 08/02/05 12:35 AM
D
DaveC
DaveC
D
umm i havent really followed what your doing here, but what about setting the halfop modes first then setting all the others after it? (or am i talking banannas at a apple and orage fair?)


Link Copied to Clipboard