From f237007bc1137dce5a7955238e7f0acd55942129 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 16 Oct 2017 17:00:53 +0100 Subject: Fix the command table not being case insensitive. This is not an issue normally but in some circumstances (e.g. when disabling commands) it can result in command lookups failing even when they exist. --- include/typedefs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/typedefs.h b/include/typedefs.h index 06f704120..03593d40f 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -120,7 +120,11 @@ typedef std::map ConfigFileCache; /** A hash of commands used by the core */ -typedef nspace::hash_map Commandtable; +#ifdef HASHMAP_DEPRECATED + typedef nspace::hash_map Commandtable; +#else + typedef nspace::hash_map, irc::StrHashComp> Commandtable; +#endif /** Membership list of a channel */ typedef std::map UserMembList; -- cgit v1.2.3