From 72edc74fbd8e4afc51abcca2ce6a8472465b9d77 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 25 Feb 2005 18:53:36 +0000 Subject: [PATCH] Show the person's part message (if there is one). --- plugins/Relay/plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Relay/plugin.py b/plugins/Relay/plugin.py index af0fcfbdf..007a75450 100644 --- a/plugins/Relay/plugin.py +++ b/plugins/Relay/plugin.py @@ -401,7 +401,11 @@ class Relay(callbacks.Plugin): hostmask = format(' (%s)', msg.prefix) else: hostmask = '' - s = format('%s%s has left on %s', msg.nick, hostmask, network) + if len(msg.args) > 1: + s = format('%s%s has left on %s (%s)', + msg.nick, hostmask, network, msg.args[1]) + else: + s = format('%s%s has left on %s', msg.nick, hostmask, network) m = self._msgmaker(channel, s) self._sendToOthers(irc, m)