1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:36:39 +02:00

Fix the syntax of Solanum identified messages.

This commit is contained in:
Sadie Powell
2021-03-30 13:56:20 +01:00
parent 3f6e694e50
commit 0a518f4bbd
+5 -2
View File
@@ -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