summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 Karas20-10791/+17879
Hpmhooking improvements
2016-05-01Merge pull request #1277 from 4144/gccwarningsHaru1-0/+1
Fix some issues found by gcc 6 with -O3.
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 functionsHaru2-3/+4
- 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-hooksHaru2-18/+22
- 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-30Replaced memset with braced initializers in the HPMHooking hook handlersHaru1-5/+1
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() macrosHaru4-123/+96
- 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-29Merge pull request #1272 from 4144/gccwarningsHaru6-65/+209
Add some new gcc 6 warnings and fix some error found by it
2016-04-29Rename configure.in into configure.acAndrei Karas2-1/+1
2016-04-29Add missing [] in configure.inAndrei Karas2-4/+4
2016-04-29Fix issues found by new warnings.Andrei Karas2-1/+2
2016-04-29Add some usefull gcc 6 warnings.Andrei Karas2-1/+192
2016-04-29Fix compilation warnings with gcc 6.Andrei Karas4-62/+14
2016-04-29Merge pull request #1271 from 4144/sanityHaru2-1/+50
Add new gcc sanitize flag -fsanitize=bounds-strict
2016-04-28Add new gcc sanitize flag -fsanitize=bounds-strictAndrei Karas2-1/+50
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-27Merge pull request #1269 from 4144/timersfixHaru4-14/+24
Fix one of timer issue and add protection agains future issues like this
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-25Merge branch 'irc_delay' into herculesHaru4-101/+272
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 Bothemagx4-14/+147
Now it's possible to send as many messages as possible without get kicked for flood.
2016-04-24Merge pull request #1264 from HerculesWS/vs2015Ibrahem Hossam39-3016/+431
2016-04-23HPM Hooks UpdateHaru3-114/+114
Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Added some files specific to VS2015 (Update 2) to gitignoreHaru1-0/+2
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>
2016-04-23Corrected the type for several variables through the codeHaru2-74/+98
- Variable types were changed to int, where it makes sense to - Corrects several warnings in VS2015 Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Changed map_session_data::chatID to int (and renamed to chat_id)Haru8-35/+38
- Chat IDs are signed integers. - Resolves various warnings, depending on the compiler settings. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Improved parsing of the server name/port in the irc bot configurationHaru1-28/+23
Fixes a VS2015 warning Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed VS2010 projectHaru13-2647/+0
- VS2010 isn't one of our supported platforms (And hasn't been for a while) - While it's currently still possible to build on VS2010 (download the files `Hercules-10.sln` and `vcproj-10/*` from an older snapshot of the repository such as https://github.com/HerculesWS/Hercules/tree/bbcb040 and put them in your Hercules directory), we offer no support for any build issues causd by future commits, nor we'll update the project/solution files. - For an overview of supported OSes and compilers, please see the wiki page https://github.com/HerculesWS/Hercules/wiki/Supported-Platforms Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Updated README fileHaru2-75/+90
- Updated versions of supported compilers - Updated dependencies and installation instructions - Minor format cleanup - Reworded some sentences - Added link to the Supported Platforms page - Corrected link to the Coding Style guidelines (in CONTRIBUTING.md) Signed-off-by: Haru <haru@dotalux.com>
2016-04-23HPM Hooks UpdateHercules.ws3-63/+63
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-04-23Merge pull request #1263 from HerculesWS/chatmessage_terminatorIbrahem Hossam9-298/+457
2016-04-23HPM Hooks UpdateHaru4-17/+114
Signed-off-by: Haru <haru@dotalux.com>