summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index c190aff4e..77a74c32c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1045,7 +1045,7 @@ void WriteMode(const char* modes, int flags, const char* text, ...)
for (int n = 0; n < modelen; n++)
{
- if (!hasumode(t,modes[n]))
+ if (!t->modes[modes[n]-65])
{
send_to_user = false;
break;
@@ -1058,7 +1058,7 @@ void WriteMode(const char* modes, int flags, const char* text, ...)
for (int n = 0; n < modelen; n++)
{
- if (hasumode(t,modes[n]))
+ if (t->modes[modes[n]-65])
{
send_to_user = true;
break;