Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Bing, Yahoo!, DotBot, Sogou

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » SWR FUSS Bugfix List » [Bug] Typo, bug, or idea comm...
Forum Rules | Mark all | Recent Posts

[Bug] Typo, bug, or idea command with emtpy argument writes empty log entry
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 19, 2005, 6:38 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bug: If a player types bug, typo, or idea without an argument, an empty entry gets submitted to the log
Danger: Low - Log file annoyance
Found by: Greven
Fixed by: Greven

---

act_comm.c, do_bug

Replace the function with:
void do_bug( CHAR_DATA * ch, char *argument )
{
   if( !argument || argument[0] == '\0' )
   {
      send_to_char( "What do you want to submit as a bug?\n\r", ch );
      return;
   }
   append_file( ch, BUG_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}


Locate do_typo and do_idea.

Replace them with:
void do_idea( CHAR_DATA * ch, char *argument )
{
   if( !argument || argument[0] == '\0' )
   {
      send_to_char( "What do you want to submit as an idea?\n\r", ch );
      return;
   }
   append_file( ch, IDEA_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}

void do_typo( CHAR_DATA * ch, char *argument )
{
   if( !argument || argument[0] == '\0' )
   {
      send_to_char( "What do you want to submit as a typo?\n\r", ch );
      return;
   }
   append_file( ch, TYPO_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}


The unchecked versions of these funcions will just allow empty lines to be posted to the logs. Not a very productive use of space.
       
Pages:<< prev 1 next >>