From db615f2c40394b90d48c690f006e46a58f7647d7 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 2 Feb 2009 23:42:04 +0000 Subject: [PATCH] callbacks: Actually obey the to argument of reply() --- src/callbacks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 175974609..23c870777 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1,6 +1,6 @@ ### # Copyright (c) 2002-2005, Jeremiah Fincher -# Copyright (c) 2008, James Vega +# Copyright (c) 2008-2009, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -164,6 +164,8 @@ def reply(msg, s, prefixNick=None, private=None, # Ok, let's make the target: # XXX This isn't entirely right. Consider to=#foo, private=True. target = ircutils.replyTo(msg) + if ircutils.isChannel(to): + target = to if ircutils.isChannel(target): channel = target else: