diff options
Diffstat (limited to 'src/modules/m_silence_ext.cpp')
-rw-r--r-- | src/modules/m_silence_ext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp index e3f8826e9..4c92b3a47 100644 --- a/src/modules/m_silence_ext.cpp +++ b/src/modules/m_silence_ext.cpp @@ -286,6 +286,8 @@ class ModuleSilence : public Module else if (target_type == TYPE_CHANNEL) { chanrec* chan = (chanrec*)dest; + int public_silence = (silence_type == SILENCE_PRIVATE ? SILENCE_CHANNEL : SILENCE_CNOTICE); + if (chan) { CUList *ulist; @@ -309,7 +311,7 @@ class ModuleSilence : public Module { if ((IS_LOCAL(i->second)) && (user != i->second)) { - if (MatchPattern(i->second, user, silence_type == SILENCE_PRIVATE ? SILENCE_CHANNEL : SILENCE_CNOTICE) == 1) + if (MatchPattern(i->second, user, public_silence) == 1) { exempt_list[i->second] = i->second; } |