diff options
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
-rw-r--r-- | src/modules/m_namedmodes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp index 2fbdca265..af520080f 100644 --- a/src/modules/m_namedmodes.cpp +++ b/src/modules/m_namedmodes.cpp @@ -113,8 +113,9 @@ class DummyZ : public ModeHandler // Handle /MODE #chan Z void DisplayList(User* user, Channel* chan) CXX11_OVERRIDE { - if (IS_LOCAL(user)) - ::DisplayList(static_cast<LocalUser*>(user), chan); + LocalUser* luser = IS_LOCAL(user); + if (luser) + ::DisplayList(luser, chan); } }; |