mirror of
https://github.com/anope/anope.git
synced 2026-07-07 20:23:13 +02:00
Make CommandSource use references, sometimes we hold them for awhile
This commit is contained in:
@@ -89,7 +89,7 @@ class CommandHSRequest : public Command
|
||||
{
|
||||
User *u = source.GetUser();
|
||||
NickAlias *na = findnick(source.GetNick());
|
||||
if (!na || na->nc != source.nc)
|
||||
if (!na || na->nc != source.GetAccount())
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user