mIRC Home    About    Download    Register    News    Help

Print Thread
weirdness #148581 08/05/06 05:58 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
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)
}
 

Last edited by raZOR; 08/05/06 06:40 PM.

IceCapped
Re: weirdness #148582 08/05/06 06:38 PM
Joined: May 2006
Posts: 25
A
Abstract Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: May 2006
Posts: 25
Maybe you've got those On Part events, and some other On Close in another script :?


==================
Abstraction is art.
Re: weirdness #148583 08/05/06 06:43 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
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


Last edited by raZOR; 08/05/06 06:45 PM.

IceCapped
Re: weirdness #148584 08/05/06 07:09 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: weirdness #148585 08/05/06 07:24 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
hey, thank you very much
it worked, i removed all from $+ $colour (including) till "pipe"

thanks again i owe you =)

Last edited by raZOR; 08/05/06 07:25 PM.

IceCapped