|
|
|
|
|
alhammer
|
|
alhammer
|
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- }
|
|
|
|
|
|
tidy_trax
|
|
tidy_trax
|
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.
|
|
|
|
|
|
alhammer
|
|
alhammer
|
Thanks to both of you. 
|
|
|
|
|
|
Kelder
|
|
Kelder
|
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-
}
|
|
|
|
|
|
tidy_trax
|
|
tidy_trax
|
Just a small note.. -i2 is the default behaviour for -i so you don't need to supply the 2 
|
|
|
|
|
|
|