Fix connection search for INVITE

This commit is contained in:
Les De Ridder 2017-04-24 06:20:59 +02:00
parent 0ac5cc07ba
commit 31c662dcbd
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 1 additions and 1 deletions

View File

@ -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]));
}