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, Yahoo!

Members: 0
Guests: 13
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 » Codebases » SWR FUSS » Idea, typo, and bug
Forum Rules | Mark all | Recent Posts

Idea, typo, and bug
< Newer Topic :: Older Topic > Invalid logs

Pages:<< prev 1 next >>
Post is unread #1 Sep 19, 2005, 11:21 am
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

If a player types bug, typo, or idea without an argument, an empty entry gets submitted to the log

act_comm.c
Locate:
void do_bug( CHAR_DATA * ch, char *argument )
{
   append_file( ch, BUG_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}

Replace 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:
void do_idea( CHAR_DATA * ch, char *argument )
{
   append_file( ch, IDEA_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}



void do_typo( CHAR_DATA * ch, char *argument )
{
   append_file( ch, TYPO_FILE, argument );
   send_to_char( "Ok.  Thanks.\n\r", ch );
   return;
}


Replace 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;
}


These are just small adjustments, these commands could be expanded alot, like allowing immortals to view the logs in game and such, but this is a simple fix the empty log messages.
       
Pages:<< prev 1 next >>