Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Google

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
481
3,737
19,381
619
Alexander
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 >>