mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Allow also using a prefix chat in autoop and exemptchanops.
This commit is contained in:
parent
f0962e0b34
commit
e4bbe486c1
@ -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;
|
||||
|
@ -44,7 +44,12 @@ public:
|
||||
static PrefixMode* FindMode(const std::string& pmode)
|
||||
{
|
||||
if (pmode.length() == 1)
|
||||
return ServerInstance->Modes.FindPrefixMode(pmode[0]);
|
||||
{
|
||||
PrefixMode* pm = ServerInstance->Modes.FindPrefixMode(pmode[0]);
|
||||
if (!pm)
|
||||
pm = ServerInstance->Modes.FindPrefix(pmode[0]);
|
||||
return pm;
|
||||
}
|
||||
|
||||
ModeHandler* mh = ServerInstance->Modes.FindMode(pmode, MODETYPE_CHANNEL);
|
||||
return mh ? mh->IsPrefixMode() : nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user