mirror of
https://github.com/anope/anope.git
synced 2026-07-08 01:23:14 +02:00
Send uids everywhere when setting modes on clients
This commit is contained in:
@@ -280,9 +280,9 @@ class CommandCSMode : public Command
|
||||
if (Anope::Match(uc->user->GetMask(), param))
|
||||
{
|
||||
if (adding)
|
||||
ci->c->SetMode(NULL, cm, uc->user->nick);
|
||||
ci->c->SetMode(NULL, cm, uc->user->GetUID());
|
||||
else
|
||||
ci->c->RemoveMode(NULL, cm, uc->user->nick);
|
||||
ci->c->RemoveMode(NULL, cm, uc->user->GetUID());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -303,9 +303,9 @@ class CommandCSMode : public Command
|
||||
}
|
||||
|
||||
if (adding)
|
||||
ci->c->SetMode(NULL, cm, param);
|
||||
ci->c->SetMode(NULL, cm, target->GetUID());
|
||||
else
|
||||
ci->c->RemoveMode(NULL, cm, param);
|
||||
ci->c->RemoveMode(NULL, cm, target->GetUID());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user