Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings.

This commit is contained in:
Azazel
2011-07-29 15:25:52 +06:00
parent cf643e5150
commit c5d0c6b464
3 changed files with 188 additions and 372 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ bool ChatHandler::HandleMuteCommand(const char* args)
else
{
//! Target is offline, mute will be in effect starting from the next login.
int32 muteTime = -(notspeaktime * MINUTE);
int32 muteTime = -int32(notspeaktime * MINUTE);
LoginDatabase.PExecute("UPDATE account SET mutetime = %d WHERE id = %u", muteTime, account_id);
}