diff --git a/src/supported.c b/src/supported.c index 24c1e3ed5..8133d548c 100644 --- a/src/supported.c +++ b/src/supported.c @@ -230,7 +230,8 @@ isupport_umode(const void *ptr) const char *str; str = ptr; - return ConfigFileEntry.oper_only_umodes & user_modes[*str] ? NULL : str; + return ConfigFileEntry.oper_only_umodes & + user_modes[(unsigned char)*str] ? NULL : str; } static const char *