egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another Time Question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
SomeGuy
Voice


Joined: 01 May 2004
Posts: 13

PostPosted: Wed May 26, 2004 7:05 pm    Post subject: Another Time Question Reply with quote

I've gone and made things really hard now.

Basically, I have a script that checks if a game server is up or down, reports the down time, and the time it came up, in the format %H:%S

Now, I have another script for this game that notifies everyone in the channel when an event is about to occur. Now what I'm trying to do is this, if the server is in DOWN mode, I don't want it to display the events (maybe adding a down to the database of the event thing then if the date:check see's down it won't do anything with it)

Now, when the server comes back up, It then displays another time, the UP time. When an UP occurs it'll get the up time, add 1 hour, then write a new time in the database over the old time (which you remember fell during server DOWN).

So to simplify my question, if I'm doing a file check when the server goes down, how do I check if the time in the event file is >= to the time of server down, then check again at up time to see if the event file <= time of server up but still >= time of server down?

I hope i was clear on my explanation, Its probably just simple lines of code. Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber