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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user