summaryrefslogtreecommitdiffstats
path: root/src/chat-server
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a bunch of cppcheck warningsErik Schilling2013-05-024-10/+11
|
* Use nullptr instead of NULL everywhereErik Schilling2013-04-276-11/+11
|
* Renamed Character -> CharacterData in the accountserverErik Schilling2013-04-115-23/+23
|
* Fixed multiple warnings and errors that blocked c++0xErik Schilling2013-04-021-1/+1
| | | | | This allows the server to compile with c++0x (and enables it). This also includes some coding style / readabillity fixes.
* Changed Item to a component of ActorThorbjørn Lindeijer2013-03-251-1/+0
| | | | | | | | | | | | | | | Items also have positions, so the ItemComponent only makes sense as part of an Actor. Later on it will probably be part of an entity that also has an ActorComponent. Since it was annoying to update all the places where items were created, I've introduced a function for this. The component types are now prefixed with "CT_" because I wanted to introduce an 'Item' namespace which would otherwise be conflicting. The component types enum isn't used much in the code so it can look a bit ugly. Reviewed-by: Yohann Ferreira
* Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer2013-01-096-15/+15
| | | | Same thing, but shorter.
* Added debugging mode to the protocolThorbjørn Lindeijer2012-05-051-5/+2
| | | | | | | | | | | | Allows inspection of message data. It is off by default since it consumes additional bandwidth, but it can be turned on using the net_debugMode option in manaserv.xml. Currently the option only affects outgoing data for each host individually. In particular, enabling this debug mode for the server does not automatically make the client annotate its messages. Reviewed-by: Erik Schilling
* Fixed guild supportErik Schilling2012-04-198-162/+210
| | | | | | | | | | | | | | | | | List of things fixed: - fixed having multiple guild support everywhere - implemented kick code (untested due to missing kick possiblity in client) - fixed giving owner rights to next member when owner leaves guild - fixed potentional segmention fault when trying to access deleted guild after all members left - fixed saving right changes to database - made searching for guilds faster a bit (at least when having many guilds) TODO: + Fix conflict between guild and normal channels + Fix being able to leave guild channel without leaving guild itself + Add kick possiblity to client Reviewed-by: bjorn.
* Fixed compilation again + some more code cleanupErik Schilling2012-02-272-9/+10
| | | | | | | | | | I did some cleanup but i had a wrong path set inside qtcreator. So i recompiled old versions and it all worked fine. But when i recompiled from console i got a whole bunch of errors. Sorry for pushing broken commits. Reviewed-by: bjorn.
* Renamed some iterators + fixed one TODO (stored guilds in a map)Erik Schilling2012-02-262-46/+23
| | | | Reviewed-by: bjorn.
* Removed logging of chatErik Schilling2012-01-221-12/+0
| | | | Reviewed-by: Bertram
* Made @announce fully functionalErik Schilling2012-01-212-38/+22
| | | | | | | - Added announcements having senders now. - Removed /announcement support. Reviewed-by: Bjorn.
* Don't log private chat messages.Yohann Ferreira2011-09-291-8/+0
| | | | | | This is against privacy rules of most servers anyway. Resolves: Mana-Mantis #392.
* Making party invite functionalStefan Dombrowski2011-06-196-186/+137
| | | | | | | | * An invite expires after 60 seconds. * For protection of the server memory each player can invite a maximum of 10 characters within the 60 second timeframe. Reviewed-by: Bjorn
* Routing party invite through the map serverStefan Dombrowski2011-05-303-32/+27
| | | | | | | | The player sends party invites to the game server. If the invitee is within the visual range of the inviter, the game server forwards the invite to the chat server. Reviewed-by: Bjorn, Jaxad0127
* Starting to fix party inviteStefan Dombrowski2011-05-162-7/+17
| | | | Reviewed-by: Bjorn
* Some ChatHandler cleanupsThorbjørn Lindeijer2011-04-024-121/+21
| | | | | | | | | | | | * Removed a lot of pointless documentation that was mainly repeating the function name and otherwise just filling up space. * Synced a few method names to the names of the messages that they were handling. * Removed an unimplemented method (sendPartyMemberInfo) Reviewed-by: Jared Adams
* Fixing account server crash when leaving guildStefan Dombrowski2011-03-311-1/+3
| | | | This resolves http://bugs.manasource.org/view.php?id=323
* Moved defines.h and manaserv_protocol.h into 'common'Thorbjørn Lindeijer2011-03-206-7/+8
| | | | Just seems a bit more organized to me.
* Micro-optimizations related to std::stringThorbjørn Lindeijer2011-03-174-13/+10
| | | | | | | | * Rely on the fact that a std::string is empty by default * Use std::string::empty() rather than comparing to "" * Construct with std::string() rather than from "" Reviewed-by: Bertram
* Removed a bunch of silly documentationThorbjørn Lindeijer2011-03-124-17/+0
| | | | | | A C++ developer should be able to recognize a constructor and a destructor by just looking at it, so let's stop writing down the obvious. :)
* Added missing using namespace clauses. Cmake's fault, I guess. ;)Yohann Ferreira2011-01-033-0/+6
| | | | Trivial.
* Namespaced the manaserv protocol to ease the porting of the enums.Yohann Ferreira2011-01-032-0/+3
| | | | Trivial.
* protocol.h -> manaserv_protocol.h to avoid conflicts with mysql files.Yohann Ferreira2010-12-295-5/+5
| | | | Resolves: Mana-Mantis #278.
* Fix many compiler warnings.Freeyorp2010-12-081-2/+2
| | | | Reviewed-by: Bertram
* Renamed .hpp files into .h for consistency.Yohann Ferreira2010-11-1417-55/+54
| | | | | | Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
* Renamed write{Byte,Short,Long} to writeInt{8,16,32}Thorbjørn Lindeijer2010-11-033-80/+77
| | | | | Mainly for consistency with the client, and the general consensus was that these numbered versions were clearer.
* Synchronise defaults between configuration file and source.Freeyorp2010-10-171-1/+1
| | | | Reviewed-by: Bertram
* More const correctness and small code cleanupsThorbjørn Lindeijer2010-06-068-62/+46
|
* Made methods of GuildManager const where appropriateThorbjørn Lindeijer2010-06-062-42/+18
| | | | Also removed some pointless null pointer checks.
* Made methods of the Guild class const where appropriateThorbjørn Lindeijer2010-06-063-37/+24
|
* Fixes based on cppcheck errors report.Yohann Ferreira2010-05-211-2/+2
| | | | Reviewed-by: Jaxad0127
* Update Copyright date for Manaserv.Bertram2010-02-0717-17/+17
|
* Reverted the accountserver-affecting changes of commits a9a87aea and ↵Philipp Sehmisch2010-01-181-2/+1
| | | | dfc6875e - doesn't work out the way I planned.
* Removed last traces of hardcoded access levels form game-server, begun with ↵Philipp Sehmisch2010-01-171-1/+2
| | | | using the permission manager in the account-server.
* Renamed DALStorage to StorageThorbjørn Lindeijer2009-12-065-5/+5
| | | | | The only reason it was a DALStorage was because it used to implement the Storage interface, but that interface got removed a long time ago.
* Moved DALStorage documentation into source fileThorbjørn Lindeijer2009-12-061-5/+5
| | | | | | | | | Some methods were documented twice. Stuff moved to source file since this keeps the header more readable, and makes it easier to keep the documentation up to date with the implementation. Also, my IDE jumps to the definition when navigating. Removed two methods that were without an implementation.
* Fixed name of the project in copyright headersThorbjørn Lindeijer2009-12-0617-145/+132
| | | | | | Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
* Removed "TMW" and "TMWSERV" from header guardsThorbjørn Lindeijer2009-12-068-16/+16
|
* A host of code style changesThorbjørn Lindeijer2009-12-062-20/+13
| | | | | | Removed pointless void in method parameter lists, fixed methods and variables that started with upper case, removed pointless 'const' for stuff passed by value, made some getters const, etc.
* Synced the protocol file with client in protocol.h, letting other defines in ↵Bertram2009-10-095-4/+5
| | | | defines.h, and removing some overheading along the way.
* More code style fixesBjørn Lindeijer2009-05-241-55/+30
|
* Made it possible to specify the host to listen onBjørn Lindeijer2009-05-242-4/+3
| | | | | | | Needed when the server has multiple network interfaces and the one you want to use isn't the default one for localhost. The host to listen on can be set in config file with 'net_listenHost'.
* Fixed a few code style issuesBjørn Lindeijer2009-05-247-61/+58
| | | | Also renamed Guild::totalMembers to Guild::memberCount
* Standardize on the position of the const keywordBjørn Lindeijer2009-04-261-1/+1
| | | | Same as for the client.
* Added listing all online usersDavid Athay2009-04-232-0/+26
|
* Break from while loops when found.David Athay2009-04-231-5/+3
|
* Reworked party invites, now sends rejections and checks the invites are validDavid Athay2009-04-234-15/+99
|
* Fixes for some compile warningsBjørn Lindeijer2009-03-101-2/+4
| | | | Mostly comparisons between signed and unsigned integers
* Added transactional history to game server.David Athay2009-03-061-1/+1
|