aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-10 23:43:43 +0100
committerGravatar Sadie Powell2022-04-10 23:43:43 +0100
commit79b1c44721776765173191dc7cba612169a8b601 (patch)
tree577dce049a869900582210b3ed41cbc2e4cc949c /src/modules/m_operprefix.cpp
parentFix <security announceinvites="dynamic"> when halfop is not loaded. (diff)
Add a method to ConfigTag to help with retrieving a single character.
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index c703d4d79..b3e8a525c 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -37,7 +37,7 @@ class OperPrefixMode : public PrefixMode
OperPrefixMode(Module* Creator)
: PrefixMode(Creator, "operprefix", 'y', OPERPREFIX_VALUE)
{
- prefix = ServerInstance->Config->ConfValue("operprefix")->getString("prefix", "!", 1, 1)[0];
+ prefix = ServerInstance->Config->ConfValue("operprefix")->getCharacter("prefix", '!');
ranktoset = ranktounset = UINT_MAX;
}
};