mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 22:51:01 +01:00
callbacks: Actually obey the to argument of reply()
This commit is contained in:
parent
125d542706
commit
db615f2c40
@ -1,6 +1,6 @@
|
|||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
# Copyright (c) 2008, James Vega
|
# Copyright (c) 2008-2009, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# 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:
|
# Ok, let's make the target:
|
||||||
# XXX This isn't entirely right. Consider to=#foo, private=True.
|
# XXX This isn't entirely right. Consider to=#foo, private=True.
|
||||||
target = ircutils.replyTo(msg)
|
target = ircutils.replyTo(msg)
|
||||||
|
if ircutils.isChannel(to):
|
||||||
|
target = to
|
||||||
if ircutils.isChannel(target):
|
if ircutils.isChannel(target):
|
||||||
channel = target
|
channel = target
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user