TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Pointing to a variable twice in one #format

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
jroper73



Joined: 05 Feb 2006
Posts: 14

PostPosted: Fri Feb 24, 2006 5:45 pm    Post subject: Pointing to a variable twice in one #format Reply with quote

The following line

#alias {logit} {#format {MyBuf} {%d %t %0} {$time,$time,%0};#logline {chat.txt} {$MyBuf}}

will always display the date correctally, but not the time.

#alias {logit} {#format {MyBuf} {%d %d %0} {$time,$time,%0};#logline {chat.txt} {$MyBuf}}

So I change it to display the date twice. This is the end result:

24-02-2006 31-12-1969 testing 229

This has to be a bug.

jroper73
Back to top
View user's profile Send private message
jroper73



Joined: 05 Feb 2006
Posts: 14

PostPosted: Sat Feb 25, 2006 12:54 am    Post subject: Found the solition Reply with quote

Found the Solution

Instead of using commas to seperate the fields, like this;

#alias {logit} {#format {MyBuf} {%d %t %0} {$time,$time,%0};#logline {chat.txt} {$MyBuf}}

You must enclose the fields in brackets {} like this

#alias {logit} {#format {MyBuf} {%d %t %0} {{$time} {$time} {%0}};#logline {chat.txt} {$MyBuf}}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group