mIRC Home    About    Download    Register    News    Help

Print Thread
#204028 05/09/08 06:41 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
i want to echo nick/channel expire times to window
for nick example info notice is
-NickServ- Last seen time: Sep 1 15:15:08 2008 EDT
then need to use /time for be sure work on server time
Friday September 5 2008 -- 15:15 -04:00
coz the server time -4 mine is +3 so there beetween 7 hours
Time: Fri Sep 05 21:29:10 2008 Warn: Last seen time: Aug 18 09:02:11 2008 EDT
Time: Fri Sep 05 21:29:14 2008 Warn: Nick lool isn't registered.
Time: Fri Sep 05 21:30:31 2008 Warn: Last used: Sep 05 11:08:12 2008 EDT
Time: Fri Sep 05 21:30:33 2008 Warn: Channel #lool isn't registered.
Code:
on *:notice:*:*:{ if (isn't registered. isin $1-) {
  .window -mze @Warnz | echo @Warnz Time: $fulldate Warn: $1 $2- }
  elseif (Last seen time: isin $1-) {
  .window -mze @Warnz | echo @Warnz Time: $fulldate Warn: $1 $2- }
  elseif (Last used: isin $1-) {
  .window -mze @Warnz | echo @Warnz Time: $fulldate Warn: $1 $2- }
}

30 days for nick drops 14 days to channels
the isn't registered parts work as i want
but last used / last seen parts need changed as Expire:
(Nick)/(#chan) name will drop 2weeks 3 days 5hours 40secs



xyzzy #204035 06/09/08 12:04 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I already replied to your topic regarding this located at http://www.hawkee.com/phpBB2/viewtopic.php?t=18310&highlight=
You noted that there were problems with the code I provided, and I will look into supplementing the code with one more thoroughly tested after I get home from work in about 12 hours time.

RusselB #204038 06/09/08 12:42 AM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
yups i tested and worked changed also somethings but still has problem with it okies tyt wink


Link Copied to Clipboard