aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
AgeCommit message (Collapse)Author
2013-08-26Core&Tools: Fix multiple issues found by a static code coverage toolNay
2013-08-25Core/Auth: Implement time-based token for user login as described in RFC 6238.raczman
New column in account table is a base32 of token key bytes, coincidentally it is the same format Google's Authenticator Android app uses. If you want that to work, set system time on server correctly and use ntpd. Closes #10527 Signed-off-by: Nay <dnpd.dd@gmail.com>
2013-08-25Core/Threading: Fix race condition in Threadjackpoz
Increment the reference count of m_task in Thread::start() before spawning the actual Thread that will execute the task, otherwise the thread might finish, decRef the task and delete it. Valgrind log of the issue: Invalid read of size 8 at 0x1314CAD: ACE_Atomic_Op_GCC<long>::operator++() (Atomic_Op_GCC_T.inl:34) by 0x15933FB: ACE_Based::Runnable::incReference() (Threading.h:36) by 0x1592D2D: ACE_Based::Thread::start() (Threading.cpp:136) by 0x1592C37: ACE_Based::Thread::Thread(ACE_Based::Runnable*) (Threading.cpp:111) by 0xF6C463: Master::Run() (Master.cpp:195) by 0xF725D0: main (Main.cpp:142) Address 0x26137278 is 8 bytes inside a block of size 24 free'd at 0x4C2B59C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0xF67FDB: RARunnable::~RARunnable() (RARunnable.cpp:55) by 0x1593441: ACE_Based::Runnable::decReference() (Threading.h:40) by 0x1592E92: ACE_Based::Thread::ThreadTask(void*) (Threading.cpp:186) by 0x515EA35: ACE_OS_Thread_Adapter::invoke() (in /usr/lib/libACE-6.0.3.so) by 0x5F19F8D: start_thread (pthread_create.c:311) by 0x6A46E1C: clone (clone.S:113) Closes #10619
2013-08-24Core&Tools: Fix multiple issues found by a static code coverage toolNay
2013-08-19Core: Fix warningVincent-Michael
2013-08-19Fix build with gcc. Thanks to McBitter for testing.QAston
2013-08-18Core: Fix warnings. Make callback symbols local.QAston
2013-08-18Fix crashed caused by using openssl from multiple threads simultanously.QAston
Note that this doesn't make BigNumber class threadsafe - it never was that way.
2013-08-18Fix BigNumber::AsByteArray function by returning Auto_Ptr.QAston
Remove mutex from BigNumber class - it didn't do what it was advertised to do - consider using the "locked" array outside of the function in which it was "locked".
2013-08-18Core: Fix a bug in BigNumber::SetBinaryQAston
2013-08-18Core: Fix a bug in BigNumber::SetQwordQAston
2013-08-06Core/Misc: Rename some no name enumsVincent-Michael
2013-07-24Core/Commands: Added the rank id to .pinfo for guild dataAscathor
2013-07-15Core/Config: Refactored ConfigMgrShauren
* Loading initial configuration files is now separate from loading any additional custom configs
2013-07-11Revert "Shared/Utils: Fixed ApplyPercentModFloatVar."Warpten
This reverts commit 2005be04740406f17bd8af8569f2cd75aa0614d4. Note to self: do not touch maths past 10 any more.
2013-07-10Shared/Utils: Fixed ApplyPercentModFloatVar.Warpten
This has been around since 2010-12-11 :)
2013-07-06Misc: Use override and final C++11 keywords in a few places (mostly scripts)Nay
OVERRIDE and FINAL are TC macros (expand to nothing if compiler does not support C++11)
2013-06-27Build: Set _BUILD_DIRECTIVE even if the compiler is not properly detectedSpp
2013-06-15Buildsystem/MSVCShauren
* Fixed ACE PCH * Removed WheatyExceptionReport sources from shared project
2013-06-11Core: More Function Renaming.Malcrom
2013-06-11Core/Instances: Fixed a bug that caused switching group leader inside active ↵Shauren
instance to cause players not being saved when a boss was killed. Closes #5109
2013-06-02Merge pull request #9854 from Ascathor/masterSubv
Core/Command: Optimized .pinfo more
2013-06-01Core/Database: Fix bad sql query in 55b3819d12699ee5d255b8dea82ab6aaee093a07 ↵Vincent-Michael
(thx Shauren)
2013-06-01Core/Database: Deleted characters will no longer be loaded when sending the ↵Subv
SMSG_CHAR_ENUM packet.
2013-05-26Core/Command: Optimized .pinfo moreAscathor
* Moved some checks around * Added RBAC Permission for Email, last login and last ip (group 3 and 4) -- If missing RBAC permission, then it displays "Unauthorized (RBAC)" * Changed totalmail output from uint64 to uint32 * Level either puts Max level, or a list of information necessary * Only queries guild if the current xp query also detects guild membership * Incorporated recent changes into code * Commander requires higher than target to get sensitive data beside RBAC permission.
2013-05-24Missed change for previous commitShauren
2013-05-22Implement .arena commands - add new commands to the core to handle with ↵Bezo
arena teams. *.arena create [player] "arena name" [type] *.arena create "arena name" [type] *.arena disband [TeamID] *.arena rename "oldName" "newName" *.arena captain [TeamID] [Player] *.arena info [TeamID] *.arena lookup [name]
2013-05-21Merge pull request #9827 from Ascathor/masterAokromes
Core/Command: Rework .PInfo and give more output and add Gender to trinity_string
2013-05-21Core/Misc: Remove trailing whitespace, compile warnings and minor cosmetic ↵Spp
changes
2013-05-20Core/Command: Rework PInfo and give more output and add Gender to trinity_stringAscathor
* Prints out in several strings instead of few * Leaves unnecessary ones out (e.g. phase for GMs) * Some code documentation included (including doxygen) * Cleaner code (partly) * Prints more content, e.g.: ** Localized Class- and Race names ** Localizable Gender names ** Current experience, required experience ** And more Shoutouts to @Nay, @Subv, @Shauren and several others from the irc Core/Command: Rework PInfo and give more output and add Gender to trinity_string
2013-05-18Reverted part of 8be181c7e60daf9833044da61b379c2136892c37 that was not ↵Shauren
supposed to be pushed
2013-05-17Core/Misc: Fixed a bunch of issues found by static analysisShauren
2013-05-16Core: Fix compiler warningsNay
2013-05-13Core/Debugging: Marked assert functions as non returningShauren
2013-05-13Core: Fixed windows compileShauren
2013-05-13Core/Logging: Performance-related tweaks to logging systemSpp
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros. Memleak fix
2013-04-29Core/Commands: Improve .character rename [name], now can force rename ↵xjose93
.character rename [name] [newName]
2013-04-27Merge pull request #9710 from xjose93/AutobroadcastAokromes
Core/World: Improvements in Autobroadcast system (dropped from world database and moved to auth database, added realmid and weight columns)
2013-04-27Merge pull request #9662 from xjose93/GuildRenameAokromes
Guild rename
2013-04-25Core/World: Improvements in Autobroadcast system (dropped from world ↵xjose93
database and moved to auth database, added realmid and weight columns)
2013-04-22[Ip2nationLock] Implement the ip2nation lock country.Bezo
2013-04-19Core/Commands: rename guilds (.guild rename "old guildname" "new guildname")xjose93
2013-03-26Core: Fix compile with WITH_COREDEBUG option enabledSpp
2013-03-26Core/Misc: Remove the use of logging system from WPFatal (Fixes tools compile)Spp
Closes #9501
2013-03-25Core/Misc: Minor optimizations (+code changes to reduce differences with ↵Spp
4.3.4 branch) Core/Logging: Create new logger type "Cheat". Will be used to log all cheat attempts
2013-03-17Core/DB: Fix a table name in CHAR_SEL_MAIL_LIST_INFONay
2013-03-17Scripts/Commands: Add .list mail $char/$guid commandBezo
Prints a list of mails received by the characters Closs #9421
2013-03-09Revert "Core/Commands: Optimize for command .npc near"Vincent_Michael
This reverts commit 4e789d4c5c83dd6f0f582fe24e9d49b39950fffe.
2013-03-09Core/Commands: Optimize for command .npc nearVincent_Michael
2013-03-09Core: Fix warnings for msvcVincent_Michael