Use uid/sid for some ERR_CHANOPRIVSNEEDED if they go to a remote client.
This commit is contained in:
parent
8c23bb2e21
commit
631b4a542a
2 changed files with 5 additions and 2 deletions
|
@ -361,7 +361,9 @@ build_target_list(int p_or_n, const char *command, struct Client *client_p,
|
||||||
if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr))
|
if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr))
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||||
me.name, source_p->name, with_prefix);
|
get_id(&me, source_p),
|
||||||
|
get_id(source_p, source_p),
|
||||||
|
with_prefix);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,8 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||||
me.name, source_p->name, name);
|
get_id(&me, source_p),
|
||||||
|
get_id(source_p, source_p), name);
|
||||||
}
|
}
|
||||||
else if(MyClient(source_p))
|
else if(MyClient(source_p))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue