summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-06-24HPM Hooks UpdateHercules.ws4-0/+68
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-06-23Interface clif_bl_type now it's clif->bl_typehemagx2-6/+8
2016-06-23Interface disguised function, now it's clif->isdisguised.hemagx2-51/+61
2016-06-23Fix Possible Crash on clif_bl_type now it checks if vd is nullhemagx2-16/+51
2016-06-18Move npc static variables into npc interface.Andrei Karas2-47/+57
2016-05-14Merge pull request #1289 from mkbu95/masterHaru1-18/+0
Remove swap testing code (leftover in cbasetypes)
2016-05-14Fixed an issue that causes `@showmobs` to skip entriesHaru1-1/+1
- Follow-up to b3c722ecf777aeeea6317755a6adfc0216b7a2bd Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Removed dead leftover code from some testing a while ago.Matheus Macabu1-18/+0
2016-05-14Removed leftover definition of BUILDIN(checkre)Haru1-62/+0
- The command was already deprecated in ca877ec and removed in 7e93d08 - Resolves #1288 Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'int' with 'int32' (guaranteed size) in all packed structsHaru1-45/+45
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'char' (except 'char[]') with 'int8' (guaranteed size) in all ↵Haru1-11/+11
packed structs Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'short' with 'int16' (guaranteed size) in all packed structsHaru1-202/+202
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned int' with 'uint32' (guaranteed size) in all packed structsHaru2-63/+63
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned short' with 'uint16' (guaranteed size) in all packed structsHaru1-39/+39
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned char' with 'uint8' (guaranteed size) in all packed structsHaru1-77/+77
Signed-off-by: Haru <haru@dotalux.com>
2016-05-08Removed some legacy checks for MSVC <= 2003Haru3-11/+7
Signed-off-by: Haru <haru@dotalux.com>
2016-05-08Removed 'temporary fix for bugreport:4961', no longer necessaryHaru1-10/+0
- The provided test cases return success on all currently supported FreeBSD versions (9 and 10) - Fixes #1283
2016-05-08Removed some old Subversion <=1.6 support codeHaru1-34/+0
Signed-off-by: Haru <haru@dotalux.com>
2016-05-08Removed some old MySQL 4 compatibility codeHaru1-15/+0
Long overdue, since MySQL 4.x was already unsupported for quite a while (to be fair, we're about to deprecate support for MySQL 5.0 and 5.1) Signed-off-by: Haru <haru@dotalux.com>
2016-05-08Fixed various issues pointed out by cppcheckHaru18-100/+92
Signed-off-by: Haru <haru@dotalux.com>
2016-05-01Fixed truncation of `@request` messagesHaru1-2/+2
- The `@request` command still makes an inter-server call. This will be fixed at a later point. Signed-off-by: Haru <haru@dotalux.com>
2016-05-01Merge pull request #1253 from HerculesWS/hpmhookingAndrei Karas19-10652/+17803
Hpmhooking improvements
2016-05-01Fix one issue found by gcc 6 with -O3.Andrei Karas1-0/+1
2016-04-30HPM Hooks UpdateHaru4-8004/+8004
Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Added one level of indirection to all variables in pre-hook functionsHaru1-2/+3
- Previously, only scalar variables had their indirection level increased. Now pointers do as well (this allows users to override const pointers) Signed-off-by: Haru <haru@dotalux.com>
2016-04-30HPM Hooks UpdateHaru4-7268/+7268
2016-04-30Removed extra indirection level in HPMHooking post-hooksHaru1-4/+6
- The extra indirection level (necessary to override function arguments from a hook) isn't necessary in post-hooks, but only in pre-hooks. - This simplifies the syntax and code of post-hooks. Signed-off-by: Haru <haru@dotalux.com>
2016-04-30HPM Hooks UpdateHaru3-78/+39
Signed-off-by: Haru <haru@dotalux.com>
2016-04-30HPM Hooks UpdateHaru5-1/+7095
Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Added type-checking for the addHookPre() and addHookPost() macrosHaru3-4/+38
- The macros will now throw a warning at compile time if a plugin is using a wrong function type for a pre or post hook. This avoids some very subtle, hard to detect, issues. - The macros now require 3 arguments instead of 2. Example: old code: addHookPre("ifname->function" my_hook); becomes: addHookPre(ifname, function, my_hook); Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Moved HPMHooking-related definitions to plugins/HPMHooking.hHaru11-41/+100
- Plugins that want to make use of the HPMHooking must now include "plugins/HPMHooking.h". Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Fixed a warning in VS2015Haru1-6/+7
Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Changed the name of two intif functions, incorrectly named mapif_*Haru1-5/+6
- mapif_parse_WisToGM_sub() renamed to intif_parse_WisToGM_sub() - mapif_parse_WisToGM() renamed to intif_parse_WisToGM_sub() Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Corrected truncation of the last letter in whisper messagesHaru4-14/+14
- Follow-up to ccfd054 - Fixes #1275 Signed-off-by: Haru <haru@dotalux.com>
2016-04-29Fix issues found by new warnings.Andrei Karas2-1/+2
2016-04-29Fix compilation warnings with gcc 6.Andrei Karas2-11/+11
2016-04-28Corrected truncation of the last letter in party messagesHaru1-13/+15
- Discovered thanks to (and follow-up to) ccfd054 - Fixes #1270 Signed-off-by: Haru <haru@dotalux.com>
2016-04-27HPM Hooks UpdateHercules.ws3-0/+31
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-04-27Fix unit_data unitialisation.Andrei Karas3-12/+16
Introduce method unit->init_ud.
2016-04-27Add checks for wrong timer id. Some times in code it can be 0 and not -1.Andrei Karas1-2/+8
Now tid is illegal, and tid start counting from 1.
2016-04-26Corrected two accidentally swapped lines of code in the ircbot ↵Haru1-2/+2
flood-protection settings - Follow-up to 5edc982. Mea culpa. Signed-off-by: Haru <haru@dotalux.com>
2016-04-25Reduced the MAX_MAP_SERVERS setting to 1hemagx2-1/+13
Multi-zone support is deprecated and should not be used on a production server.
2016-04-25HPM Hooks UpdateHercules.ws4-6/+101
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-04-25Move irc-bot.c documentation to irc-bot.hhemagx2-92/+130
interface a not interfaced function irc_privmsg_ctcp
2016-04-25Added a flood protection to IRC Bothemagx3-14/+144
Now it's possible to send as many messages as possible without get kicked for flood.
2016-04-23HPM Hooks UpdateHaru3-114/+114
Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Corrected the type of the 'length' argument of other message-related functionsHaru6-12/+12
- Variable types were changed to int - Corrects several warnings in VS2015 - Affected functions: `clif->wis_message()`, `intif->wis_message()`, `intif->guild_change_gm()`. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed the 'len' argument from various message-related functionsHaru8-21/+31
- The argument was redundant, since the passed value is always the same as the passed string's length (it doesn't make sense otherwise). The argument is implicit now. Less typing and less errors. - Affected functions: `clif->bg_message()`, `bg->send_message()`, `party->send_message()`, `guild->send_message()`. Signed-off-by: Haru <haru@dotalux.com> Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed the 'len' argument from clif_disp_onlyself() and clif->disp_message()Haru10-36/+38
- The argument was redundant, since the passed value is always the same as the passed string's length (it doesn't make sense otherwise). The argument is implicit now. Less typing and less errors. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Corrected the type of the 'length' argument of various broadcast-related ↵Haru9-37/+48
functions - Variable types were changed to int - Corrects several warnings in VS2015 - Affected functions: `clif->broadcast()`, `clif->broadcast2()`, `intif->broadcast()`, `intif->broadcast2()` Signed-off-by: Haru <haru@dotalux.com>