diff options
author | Sadie Powell <sadie@witchery.services> | 2021-03-30 13:56:20 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-03-30 13:56:20 +0100 |
commit | 0a518f4bbd4791e06924ed2e981d7da56869f024 (patch) | |
tree | 1b1562a935f77b83ac750a812f8368ecc71b275b /modules/protocol/solanum.cpp | |
parent | 3f6e694e5034e13e4cb8120ae276a63e12698387 (diff) |
Fix the syntax of Solanum identified messages.
Diffstat (limited to 'modules/protocol/solanum.cpp')
-rw-r--r-- | modules/protocol/solanum.cpp | 7 |
1 files 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 |