mIRC Home    About    Download    Register    News    Help

Print Thread
#74470 08/03/04 07:06 PM
Joined: Oct 2003
Posts: 101
R
root66 Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: Oct 2003
Posts: 101
How about a flag to make a listening socket automatically timeout after a certain number of seconds? That would rock.

#74471 09/03/04 05:18 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I see not need.

/socklisten blah 80
.timercloseblah 1 30 /sockclose blah

Timer's are simple enough.

#74472 09/03/04 06:17 AM
I
Iori
Iori
I
Just like you can do
set %var 1
timervarunset 1 20 unset %var

Oh but /set|/inc|/hinc|/ban|and others have an unset flag.

#74473 09/03/04 04:38 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
A socket timeout isn't the same as just closing a socket after a period of time.

#74474 10/03/04 02:16 AM
Joined: Oct 2003
Posts: 101
R
root66 Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: Oct 2003
Posts: 101
[sarcasm]
oh a timer, no, really? I had no idea you could make timers.
[/sarcasm]

#74475 10/03/04 08:35 AM
Joined: Dec 2002
Posts: 346
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 346
Timers... never!

It's far easier to imagine that the little magical monkey in your computer is going to ook-ook-eek to the required value before closing the socket isn't it? How else do you think this will be implemented, and why do you feel it should be an internal mIRC feature as opposed to a scripted, far more flexible, solution?

#74476 10/03/04 10:39 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Well, internal timers are usually handier (that's why we have -u in various commands, as lori pointed out) but another, perhaps more important, difference is that /timers are quite often stopped by the user. I've found myself doing /timers off, to stop a timer gone haywire and flooding my Status, for example. Of course, internal timers can still be stopped in most cases (heck, one could even do a /sockclose *) but /timers off happens far more often, I think. This unpredictable stopping of /timers has always been bothering me in scripts (for example, I use the on active event to check for and restart timers).


Link Copied to Clipboard