forked from lesderid/salty-ircd
Fix connection search for INVITE
This commit is contained in:
parent
0ac5cc07ba
commit
31c662dcbd
|
@ -318,7 +318,7 @@ class Server
|
|||
|
||||
void invite(Connection inviter, string target, string channelName)
|
||||
{
|
||||
auto user = connections.find!(c => c.nick = target)[0];
|
||||
auto user = findConnectionByNick(target)[0];
|
||||
user.send(Message(inviter.mask, "INVITE", [user.nick, channelName]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue