diff options
| author | 2023-04-21 13:01:13 +0100 | |
|---|---|---|
| committer | 2023-04-21 13:01:13 +0100 | |
| commit | e4bbe486c151f845feb426b256f94c3dcfce30a6 (patch) | |
| tree | 24293231516a49d1a6035e6352e8140b64abe2ec /src/modules/m_autoop.cpp | |
| parent | Replace <sqlauth:allowpattern> with <sqlexemption>. (diff) | |
Allow also using a prefix chat in autoop and exemptchanops.
Diffstat (limited to 'src/modules/m_autoop.cpp')
| -rw-r--r-- | src/modules/m_autoop.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index 2815728d3..a2fd1fc58 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -45,7 +45,12 @@ public: static PrefixMode* FindMode(const std::string& mid) { if (mid.length() == 1) - return ServerInstance->Modes.FindPrefixMode(mid[0]); + { + PrefixMode* pm = ServerInstance->Modes.FindPrefixMode(mid[0]); + if (!pm) + pm = ServerInstance->Modes.FindPrefix(mid[0]); + return pm; + } ModeHandler* mh = ServerInstance->Modes.FindMode(mid, MODETYPE_CHANNEL); return mh ? mh->IsPrefixMode() : nullptr; |
