The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

comedit_logtype

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69r possible bug reports
View previous topic :: View next topic  
Author Message
spilinek



Joined: 17 Sep 2003
Posts: 217
Location: Massachusetts, USA

PostPosted: Mon Jan 21, 2008 5:51 am    Post subject: comedit_logtype Reply with quote

In the function comedit_logtype found in comedit.cpp

Code:
    pC->log = value;
    ch->printlnf( "Log set to '%s'.", argument );


So if you type "log alw", the response is "Log set to 'alw'." when you would expect, "Log set to 'always'."

Replace the above code with:

Code:
    pC->log = value;
    ch->printlnf( "Log set to '%s'.", flag_string(commandlog_types, value));


Also I noticed that commandlog_types is a flag table when it should be changed to a types table since you can't set multiple command log types.



_________________
"Beer is proof that God loves us and wants us to be happy." -- Benjamin Franklin
Back to top
View user's profile Send private message MSN Messenger
Daos



Joined: 29 Jan 2003
Posts: 1224
Location: United States

PostPosted: Tue Jan 22, 2008 4:28 pm    Post subject: Re: comedit_logtype Reply with quote

spilinek wrote:
In the function comedit_logtype found in comedit.cpp

Code:
    pC->log = value;
    ch->printlnf( "Log set to '%s'.", argument );


So if you type "log alw", the response is "Log set to 'alw'." when you would expect, "Log set to 'always'."

Replace the above code with:

Code:
    pC->log = value;
    ch->printlnf( "Log set to '%s'.", flag_string(commandlog_types, value));


Also I noticed that commandlog_types is a flag table when it should be changed to a types table since you can't set multiple command log types.


Nicely spotted!



_________________
- Daos

http://www.dawnoftime.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website
derek



Joined: 23 Sep 2007
Posts: 125

PostPosted: Sun Nov 21, 2010 4:18 am    Post subject: Reply with quote

still in beta6, fwiw


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69r possible bug reports All times are GMT + 13 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


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin