Place ChanServ notices in the front buffer if the front buffer is on the same network.

This commit is contained in:
DasBrain 2021-05-27 09:35:47 +02:00 committed by Patrick
parent 333a02d015
commit 09e9d1f749

View File

@ -107,7 +107,8 @@ find_session_from_nick (char *nick, server *serv)
if (serv->front_session)
{
if (userlist_find (serv->front_session, nick))
// If we are here for ChanServ, then it is usually a reply for the user
if (!g_ascii_strcasecmp(nick, "ChanServ") || userlist_find (serv->front_session, nick))
return serv->front_session;
}