Minor styling tidy up
This commit is contained in:
parent
b6dda4df13
commit
2d32788121
@ -30,7 +30,7 @@
|
||||
/**********************************************************************
|
||||
CommandTable : mailCommandTable
|
||||
/***********************************************************************/
|
||||
// Send mail by command
|
||||
// Send mail by command
|
||||
bool ChatHandler::HandleSendMailCommand(char* args)
|
||||
{
|
||||
if (!*args)
|
||||
|
@ -1013,8 +1013,7 @@ enum MangosStrings
|
||||
LANG_HONOR_LAST_WEEK = 1438,
|
||||
LANG_HONOR_LIFE = 1439,
|
||||
LANG_COMMAND_TICKETUPDATED = 1440,
|
||||
// Room for old clients 1.x 1441499 not used
|
||||
|
||||
// Room for old clients 1.x 1441-1499 not used
|
||||
|
||||
// Level 2 (continue)
|
||||
LANG_POOL_CHANCE_POOL_LIST_CONSOLE = 1500,
|
||||
|
@ -51,32 +51,32 @@ class Unit;
|
||||
|
||||
class ChatCommand
|
||||
{
|
||||
public:
|
||||
uint32 Id;
|
||||
const char* Name;
|
||||
uint32 SecurityLevel; // function pointer required correct align (use uint32)
|
||||
bool AllowConsole;
|
||||
bool (ChatHandler::* Handler)(char* args);
|
||||
std::string Help;
|
||||
ChatCommand* ChildCommands;
|
||||
public:
|
||||
uint32 Id;
|
||||
const char* Name;
|
||||
uint32 SecurityLevel; // function pointer required correct align (use uint32)
|
||||
bool AllowConsole;
|
||||
bool (ChatHandler::* Handler)(char* args);
|
||||
std::string Help;
|
||||
ChatCommand* ChildCommands;
|
||||
|
||||
ChatCommand(
|
||||
ChatCommand(
|
||||
const char* pName,
|
||||
uint32 pSecurityLevel,
|
||||
bool pAllowConsole,
|
||||
bool (ChatHandler::* pHandler)(char* args),
|
||||
std::string pHelp,
|
||||
ChatCommand* pChildCommands
|
||||
)
|
||||
)
|
||||
: Id(-1)
|
||||
{
|
||||
{
|
||||
Name = pName;
|
||||
SecurityLevel = pSecurityLevel;
|
||||
AllowConsole = pAllowConsole;
|
||||
Handler = pHandler;
|
||||
Help = pHelp;
|
||||
ChildCommands = pChildCommands;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
enum ChatCommandSearchResult
|
||||
|
@ -327,7 +327,7 @@ void MailDraft::SendMailTo(MailReceiver const& receiver, MailSender const& sende
|
||||
// Normal Mail Expire Timer
|
||||
expire_delay = 30 * DAY;
|
||||
|
||||
// auction mail without any items and money
|
||||
// auction mail without any items and money (auction sale note) pending 1 hour
|
||||
if (sender.GetMailMessageType() == MAIL_AUCTION && m_items.empty() && !m_money)
|
||||
{
|
||||
expire_delay = HOUR;
|
||||
@ -348,9 +348,6 @@ void MailDraft::SendMailTo(MailReceiver const& receiver, MailSender const& sende
|
||||
expire_delay = 90 * DAY;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
time_t expire_time = deliver_time + expire_delay;
|
||||
|
||||
// Add to DB
|
||||
|
Loading…
x
Reference in New Issue
Block a user