Timers not being shut down properly

Talk about anything about MSN Messenger for mIRC or leave some comments.
Post Reply
Pagans

Timers not being shut down properly

Post by Pagans »

Greetings,

The Msn 4 mIRC v3.48 appears to be more stable than the previous versions, my thanks and congratulations to andyc, the author.

I noticed while trying to work out a section of the code therein that the timers checking for keyboard entrys of those invited to chat via a IM session did not stop nor deactive long after those people left, and I have dozens and dozens of them sitting there pulling resources like leeches long after the users have left the IM Session.

* Timer rosedreamer20@hotmail.com 1ms delay checktype rosedreamer20@hotmail.com (Talk)
* Timer pagonlair@hotmail.com 1ms delay checktype pagonlair@hotmail.com (Talk)
* Timer cidinhasz@hotmail.com 1ms delay checktype cidinhasz@hotmail.com (Talk)
* Timer krystlehaleys@hotmail.com 1ms delay checktype krystlehaleys@hotmail.com (Talk)
* Timer paganz@hotmail.com 1ms delay checktype paganz@hotmail.com (Talk)
* Timer punk_n_dreamed@hotmail.com 1ms delay checktype punk_n_dreamed@hotmail.com (Talk)

etc.etc.etc. (the above email addys have been changed from their original)

Manually trying to fix this problem appears to be problematic to me:

/timer punk_n_dreamed@hotmail.com OFF

gives me:

/timer: timer 1 not active

Anyway, I see this as a problematic bug, and look forward to the suggested fix on this. I figure after acouple hundred different visitors have come and gone, the resources still being wasted on those 200+ 1ms timers should begin to drag the system down.

Pagans
Sat

solution

Post by Sat »

for resolving this problem get it

on *:close:@:{
if (*.com iswm $right($target,-1)) || (*.co.uk isin $right($target,-1)) {
.timer $+ $right($target,-1) off
}
Sat

Post by Sat »

i missed something

on *:close:@:{
if (*.com iswm $right($target,-1)) || (*.co.uk iswm $right($target,-1)) {
.timer $+ $right($target,-1) off
}
Pagans

Timers not being shut down properly

Post by Pagans »

Greetings and Happy Holidaze Sat,

I've updated my copy of msn.mrc v3.48 with your suggested addition:

on *:close:@:{
if ( $target == @Messenger ) { sockclose msn | sockclose chat.* | halt }
sockclose chat. $+ $right($target, $calc($len($target) - 1))
if (*.com iswm $right($target,-1)) || (*.co.uk iswm $right($target,-1)) {
.timer $+ $right($target,-1) off
}
}

Thanks,

Pagans
andyc
MSN for mIRC Creator
Posts: 243
Joined: Sun Dec 01, 2002 21:26 pm

Post by andyc »

Hey everyone,

This is a problem I overlooked - thanks!

Pagans, the suggested addon works fine, and has now been incorporated into the next version of the script.
Manually trying to fix this problem appears to be problematic to me:

/timer punk_n_dreamed@hotmail.com OFF

gives me:

/timer: timer 1 not active
This happened because you have a space where you shouldn't.

The correct code to turn the timer off would be:
/timerpunk_n_dreamed@hotmail.com OFF

Notice the lack of space.
Gizmo
Posts: 4
Joined: Sat May 30, 2009 18:41 pm

Re: Timers not being shut down properly

Post by Gizmo »

how can I start that timer ? lol...

doesn't work for me. ;/
andyc
MSN for mIRC Creator
Posts: 243
Joined: Sun Dec 01, 2002 21:26 pm

Re: Timers not being shut down properly

Post by andyc »

What are you trying to do?
Post Reply