|
Joined: Feb 2005
Posts: 194
Vogon poet
|
OP
Vogon poet
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: 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"
|
|
|
|
Joined: Feb 2005
Posts: 681
Fjord artisan
|
Fjord artisan
Joined: Feb 2005
Posts: 681 |
on ^*:TEXT:*:#: { haltdef echo -t # ‹ $+ $iif($nick == $nick(#,$nick).pnick,$nick,$+(,$left($v2,1),,$nick)) $+ › $1- }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
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.
New username: hixxy
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 194 |
Thanks to both of you. 
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
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,327
Hoopy frood
|
Hoopy frood
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 
New username: hixxy
|
|
|
|
|