summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-10 13:58:38 -0200
committershennetsind <ind@henn.et>2014-02-10 13:58:38 -0200
commit92be98c305c4888e5842c44d100e04a5aad4da25 (patch)
tree0fe27c6023d6a5473624a8907123e374c8f5497b /src
parent51805d1f2cedc084fea6cc390ca23a24291edbec (diff)
downloadhercules-92be98c305c4888e5842c44d100e04a5aad4da25.tar.gz
hercules-92be98c305c4888e5842c44d100e04a5aad4da25.tar.bz2
hercules-92be98c305c4888e5842c44d100e04a5aad4da25.tar.xz
hercules-92be98c305c4888e5842c44d100e04a5aad4da25.zip
bindatcommands are now case-insenstivie (just like normal @commands)
As proposed by kyeme in http://hercules.ws/board/topic/2101-bind-commands/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 6177fad23..2849ada0b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -64,7 +64,7 @@ struct atcmd_binding_data* get_atcommandbind_byname(const char* name) {
if( *name == atcommand->at_symbol || *name == atcommand->char_symbol )
name++; // for backwards compatibility
- ARR_FIND( 0, atcommand->binding_count, i, strcmp(atcommand->binding[i]->command, name) == 0 );
+ ARR_FIND( 0, atcommand->binding_count, i, strcmpi(atcommand->binding[i]->command, name) == 0 );
return ( i < atcommand->binding_count ) ? atcommand->binding[i] : NULL;
}