|
Joined: Feb 2005
Posts: 193
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 193 |
Hey. I'm trying to turn <Bob> into <@Bob>. I know this is a pretty simple script. Here is what I have now: 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
|
|
|
|
mIRCManiac
|
mIRCManiac
|
on ^*:TEXT:*:#: { haltdef echo -t # ‹ $+ $iif($nick == $nick(#,$nick).pnick,$nick,$+(,$left($v2,1),,$nick)) $+ › $1- }
|
|
|
|
Joined: Nov 2003
Posts: 2,321
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,321 |
on ^*:text:*:#: {
haltdef
echo -t $chan $+(<, $iif($left($nick($chan, $nick).pnick, 1) isin $prefix, $v1), $nick, >) $1-
} Edit: added code tags.
Last edited by tidy_trax; 28/05/05 02:31 AM.
|
|
|
|
Joined: Feb 2005
Posts: 193
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 193 |
Thanks to both of you. 
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
And just for the fun of playing with /echo switches: on ^*:text:*:#: {
haltdef
echo -ti2lbfmr $chan $+(<, $iif($left($nick($chan, $nick).pnick, 1) isin $prefix, $v1), $nick, >) $1-
}
|
|
|
|
Joined: Nov 2003
Posts: 2,321
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,321 |
Just a small note.. -i2 is the default behaviour for -i so you don't need to supply the 2 
|
|
|
|
|