diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2019-11-16 21:03:08 -0700 |
---|---|---|
committer | P. Powell <petpow@saberuk.com> | 2019-11-27 18:21:01 +0000 |
commit | 059c78aee39d36536078f606c853e29214196b85 (patch) | |
tree | ecc33a9ed69abe231190e55a95d75be2dcd5fb3f | |
parent | f75c5011e2ec417f53892af643c4f7ffd00dcc7f (diff) |
Fix retrieval of TopicLock status in IRCDMessageMetadata.
-rw-r--r-- | modules/protocol/inspircd20.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 47d8cca55..7cf4bf255 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -923,7 +923,7 @@ class IRCDMessageMetadata : IRCDMessage } else if ((do_topiclock) && (params[1] == "topiclock")) { - bool mystate = c->ci->GetExt<bool>("TOPICLOCK"); + bool mystate = c->ci->HasExt("TOPICLOCK"); bool serverstate = (params[2] == "1"); if (mystate != serverstate) UplinkSocket::Message(Me) << "METADATA " << c->name << " topiclock :" << (mystate ? "1" : ""); |