use event["from_self"] instead of checking nickname

This commit is contained in:
jesopo 2019-06-20 20:11:40 +01:00
parent 9f4e0c174a
commit afa6b86c41

View file

@ -5,7 +5,7 @@ class Module(ModuleManager.BaseModule):
return channel.get_setting("channel-relays", [])
def _relay(self, event, channel):
if event["server"].is_own_nickname(event["user"].nickname):
if event["from_self"]:
return
relays = self._get_relays(channel)