From 0a518f4bbd4791e06924ed2e981d7da56869f024 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Mar 2021 13:56:20 +0100 Subject: [PATCH] Fix the syntax of Solanum identified messages. --- modules/protocol/solanum.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp index 1375b1928..0a20cbf7f 100644 --- a/modules/protocol/solanum.cpp +++ b/modules/protocol/solanum.cpp @@ -383,13 +383,16 @@ class ProtoSolanum : public Module { // If the user has logged into their current nickname then mark them as such. NickAlias *na = NickAlias::Find(u->nick); - UplinkSocket::Message(Me) << "ENCAP * IDENTIFIED " << u->GetUID() << " " << (na && na->nc == u->Account() ? na->nick : "OFF"); + if (na && na->nc == u->Account()) + UplinkSocket::Message(Me) << "ENCAP * IDENTIFIED " << u->GetUID() << " " << u->nick; + else + UplinkSocket::Message(Me) << "ENCAP * IDENTIFIED " << u->GetUID() << " " << u->nick << " OFF"; } void OnNickLogout(User *u) anope_override { // We don't know what account the user was logged into so send in all cases. - UplinkSocket::Message(Me) << "ENCAP * IDENTIFIED " << u->GetUID() << " OFF"; + UplinkSocket::Message(Me) << "ENCAP * IDENTIFIED " << u->GetUID() << " " << u->nick << " OFF"; } void OnUserNickChange(User *u, const Anope::string &) anope_override