mIRC Home    About    Download    Register    News    Help

Print Thread
#129625 07/09/05 11:13 PM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
Could anyone help me fix this small bug that I seem to have in this popup

Code:
on *:join:#perpetual-night:{
  if ($window(@JoinLog) == $null) { .window -e @JoinLog }
  aline @Joinlog 4***5 $time(hh:mmtt) -7 $nick (11 $+ $address($nick,2) $+ ) joined7 $chan 
} 


The problem im having, is that the timestamp isnt changing, so its not showing the correct time.

anyhelp would be apreciated, also is it possible to add a date stamp alongside the time..

Thanks


Gary
#129626 07/09/05 11:25 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try nn for minutes, mm is for month.

$date - $time(hh:nntt)

#129627 07/09/05 11:26 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:join:#:{ 
  if (!$window(@JoinLog)) { .window -e @JoinLog }  
  aline @Joinlog 4***5 $time(hh:nntt) -7 $nick (11 $+ $address($nick,2) $+ ) joined7 $chan
}



It wouldn't change because mm is for month not minutes. smile
It must have been returning 09 for the nineth month of the year.

-Andy

#129628 08/09/05 06:29 AM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
Excellent........

That works alot better now, now is there a way to add the date inside that code?


Gary
#129629 08/09/05 06:37 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Use $date? smile

-Andy

#129630 08/09/05 08:47 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Use mm again :tongue:

m is number of month: 9
mm is same, zeropadded: 09
mmm is short name: Sep
mmmm is name: September

d for days, y for years, see /help $asctime for all letter codes.

$asctime, $date and $time are really the same if you use the format parameter...

If the date is close to the time, just add the above letter codes in the $time call, otherwise you have to put in another $time call.

Another tip: if you want the color code to be appended to the time without the space, use <ctrl-k>05 $+ $time(HH:nn) so that the first digit of the hour doesn't become part of the color code.

Last edited by Kelder; 08/09/05 08:51 AM.
#129631 08/09/05 09:52 PM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
Thankyou all for your help, ill give it a go and see how it works out smile


Gary
#129632 08/09/05 10:26 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
You might also want to move that to raw numeric 366, as it is the end of the join process, and :join: is the begining... (always screwed me up in the past)... Reason being that the nick will not be in your IAL until after it receives it's users info.


NaquadaBomb
www.mirc-dll.com
#129633 08/09/05 10:56 PM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
To add another channel, what would be the simplest way to do this?


Gary
#129634 08/09/05 10:59 PM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
on *:join:#chan1,#chan2,#chanX:{


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#129635 09/09/05 07:22 AM
Joined: Sep 2005
Posts: 4
Self-satisified door
Offline
Self-satisified door
Joined: Sep 2005
Posts: 4
i need kicked, banned Log plz help me

#129636 09/09/05 07:28 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Read /help on BAN and /help on KICK and you should figure it out, it's almost completely the same, only $banmask and $knick are needed...


Link Copied to Clipboard