summaryrefslogtreecommitdiff
path: root/modules/protocol/solanum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/protocol/solanum.cpp')
-rw-r--r--modules/protocol/solanum.cpp7
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