mIRC Home    About    Download    Register    News    Help

Print Thread
#121473 28/05/05 02:10 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Hey. I'm trying to turn <Bob> into <@Bob>. I know this is a pretty simple script. Here is what I have now:
Code:
on ^*:text:*:#: {
  haltdef
  echo -t $chan ‹ $+ $replace($nick,$nick,$iif($nick isop $chan,@,$iif($nick isvoice $chan,+,$iif($nick ishop $chan,%))) $+ $nick) $+ › $1-
}
As you can see, it works for @ (op), % (half-op), and + (voice). However, I need one that works with all of those PLUS: & (Admin) and ~ (owner). Any ideas?

Thanks in advance,
alhammer


"God sometimes puts us in the dark for us to see the light"
#121474 28/05/05 02:28 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
on ^*:TEXT:*:#: {
haltdef
echo -t # ‹ $+ $iif($nick == $nick(#,$nick).pnick,$nick,$+(,$left($v2,1),,$nick)) $+ › $1-
}

#121475 28/05/05 02:30 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on ^*:text:*:#: {
  haltdef
  echo -t $chan $+(&lt;, $iif($left($nick($chan, $nick).pnick, 1) isin $prefix, $v1), $nick, &gt;) $1-
}


Edit: added code tags.

Last edited by tidy_trax; 28/05/05 02:31 AM.

New username: hixxy
#121476 28/05/05 02:49 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks to both of you. smile


"God sometimes puts us in the dark for us to see the light"
#121477 28/05/05 08:55 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
And just for the fun of playing with /echo switches:

Code:
on ^*:text:*:#: {
  haltdef
  echo -ti2lbfmr $chan $+(&lt;, $iif($left($nick($chan, $nick).pnick, 1) isin $prefix, $v1), $nick, &gt;) $1-
}

#121478 28/05/05 01:56 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Just a small note.. -i2 is the default behaviour for -i so you don't need to supply the 2 smile


New username: hixxy

Link Copied to Clipboard