From c46deb97db447623d3adff7ee91b95ea8c351e16 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 16 Oct 2017 20:08:05 -0400 Subject: [PATCH] Fixes IRC PMs not working --- TGServerService/IRC.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TGServerService/IRC.cs b/TGServerService/IRC.cs index 7194be267c..a04dfc2d36 100644 --- a/TGServerService/IRC.cs +++ b/TGServerService/IRC.cs @@ -88,6 +88,8 @@ namespace TGServerService { if (IRCConfig.AdminsAreSpecial) { + if (e.Channel == null) + return false; var user = (NonRfcChannelUser)irc.GetChannelUser(e.Channel, e.Nick); if (user != null) switch (IRCConfig.AuthLevel)