SHOW:
|
|
- or go back to the newest paste.
| 1 | alias highlight {
| |
| 2 | if (!$1) {
| |
| 3 | echo -ac info * /highlight: No Channel Specified | |
| 4 | halt | |
| 5 | } | |
| 6 | var %i = 0 | |
| 7 | var %string = "" | |
| 8 | while (%i < $nick($1, 0)) {
| |
| 9 | inc %i | |
| 10 | set %string $addtok(%string,$+($chr(32),$nick($1,%i)),44) | |
| 11 | } | |
| 12 | msg $1 %string | |
| 13 | unset %string | |
| 14 | } | |
| 15 | on *:text:.call *:#: {
| |
| 16 | if ($nick isop $chan) {
| |
| 17 | var %f = #gervasio1 | |
| 18 | var %d = #gervasio2 | |
| 19 | var %e = #gervasio3 | |
| 20 | if ($2 == -f) {
| |
| 21 | highlight %f | |
| 22 | .timer 1 1.2 msg %f 9::8::4:: $3- 9::8::4:: | |
| 23 | } | |
| 24 | - | if ($2 == -d) {
|
| 24 | + | elseif ($2 == -d) {
|
| 25 | highlight %d | |
| 26 | .timer 1 1.2 msg %d 9::8::4:: $3- 9::8::4:: | |
| 27 | } | |
| 28 | - | if (($2 == -fd) || ($2 == -df)) {
|
| 28 | + | elseif (($2 == -fd) || ($2 == -df)) {
|
| 29 | highlight %f | |
| 30 | .timer 1 1.2 msg %f 9::8::4:: $3- 9::8::4:: | |
| 31 | highlight %d | |
| 32 | .timer 1 1.2 msg %d 9::8::4:: $3- 9::8::4:: | |
| 33 | } | |
| 34 | - | if ($2 == -e) {
|
| 34 | + | elseif ($2 == -e) {
|
| 35 | highlight %e | |
| 36 | .timer 1 1.2 msg %e 9::8::4:: $3- 9::8::4:: | |
| 37 | } | |
| 38 | - | if (($2 == -fe) || ($2 == -ef)) {
|
| 38 | + | elseif (($2 == -fe) || ($2 == -ef)) {
|
| 39 | highlight %f | |
| 40 | .timer 1 1.2 msg %f 9::8::4:: $3- 9::8::4:: | |
| 41 | highlight %e | |
| 42 | .timer 1 1.2 msg %e 9::8::4:: $3- 9::8::4:: | |
| 43 | } | |
| 44 | - | if (($2 == -de) || ($2 == -ed)) {
|
| 44 | + | elseif (($2 == -de) || ($2 == -ed)) {
|
| 45 | highlight %d | |
| 46 | .timer 1 1.2 msg %d 9::8::4:: $3- 9::8::4:: | |
| 47 | highlight %e | |
| 48 | .timer 1 1.2 msg %e 9::8::4:: $3- 9::8::4:: | |
| 49 | } | |
| 50 | - | if (($2 == -def) || ($2 == -edf) || ($2 == -fed) || ($2 == -fde) || ($2 == -efd) || ($2 == -dfe)) {
|
| 50 | + | elseif (($2 == -def) || ($2 == -edf) || ($2 == -fed) || ($2 == -fde) || ($2 == -efd) || ($2 == -dfe)) {
|
| 51 | highlight %d | |
| 52 | .timer 1 1.2 msg %d 9::8::4:: $3- 9::8::4:: | |
| 53 | highlight %e | |
| 54 | .timer 1 1.2 msg %e 9::8::4:: $3- 9::8::4:: | |
| 55 | highlight %f | |
| 56 | .timer 1 1.2 msg %f 9::8::4:: $3- 9::8::4:: | |
| 57 | } | |
| 58 | else {
| |
| 59 | highlight $chan | |
| 60 | .timer 1 1.2 msg $chan 9::8::4:: $2- 9::8::4:: | |
| 61 | } | |
| 62 | } | |
| 63 | } |