mIRC Homepage
Posted By: raZOR weirdness - 08/05/06 05:58 PM
when i part channel with or without message using /part
it shows normal

Part: razor (id@my.domain) has left #channel
Part: razor (id@my.domain) has left #channel (blabla)

BUT when i close channel (right click on switchbar channel button) i get this: (EXACTLY)

Part: razor (address) has left #channel (10)

so why does it say "address" and why do i get "10" as part msg ?

for PART code i have this:

Code:
 
on ^1:PART:#: { 
  haltdef
  if ( $nick == $me ) { /part # %partm $+ $colour(part text) $+ | if (%sounds == On) && (%sdpart != $null) { .splay %sdpart }  }
  if ( $1- == $null ) {  echo $chan $timestamps $theme(part,$nick,$address,$chan) }
  if ( $1- != $null ) {  echo $chan $timestamps $theme(partreason,$nick,address,$chan,$1-) }
}

 


where it reads from theme.ini this:

Code:
 
theme {
  tokenize 32 $1- 
  goto $1
   :part | return 10Part:0 $2 10(15 $+ $replace($3,@,10@15 $+ ) $+ 10)15 has left $4

  :partreason | return 10Part:0 $2 10(15 $+ $replace($3,@,10@15 $+ ) $+ 10)15 has left $4 10(15 $+ $5- $+ 10)
}
 
Posted By: Abstract Re: weirdness - 08/05/06 06:38 PM
Maybe you've got those On Part events, and some other On Close in another script :?
Posted By: raZOR Re: weirdness - 08/05/06 06:43 PM
nope

this only one ON PART which i posted
even in debug log i get:

PART #channel :10

and i have no ON CLOSE events

Posted By: qwerty Re: weirdness - 08/05/06 07:09 PM
The problem is most likely in this part (no pun intended):

/part # %partm $+ $colour(part text) $+ |

%partm is probably empty, so all is left is the value of $color(), which is probably 10 in your case. I'm not sure why you need $color(part) in your part message so the whole thing looks wrong, unless %partm is supposed to end in a Ctrl+K character. Also, "$color(part text) $+ | ..." is invalid (even though mirc doesn't complain): it makes no sense to concatenate $color() with, well, nothing. If you don't want anything to follow $color(), just remove that $+ from there.
Posted By: raZOR Re: weirdness - 08/05/06 07:24 PM
hey, thank you very much
it worked, i removed all from $+ $colour (including) till "pipe"

thanks again i owe you =)
© mIRC Discussion Forums