mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Let's make threaded commands tag the message as replied from the start, so things like Infobot won't respond.
This commit is contained in:
parent
e803bc1e0a
commit
c20d3cafbd
@ -607,6 +607,12 @@ class IrcObjectProxy(RichReplyMethods):
|
||||
def _callCommand(self, name, cb):
|
||||
try:
|
||||
self.commandMethod = cb.getCommand(name)
|
||||
if not world.isMainThread():
|
||||
# If we're a threaded command, we may not reply quickly enough
|
||||
# to prevent regexp stuff from running. So we do this to make
|
||||
# sure it doesn't happen. Neither way (tagging or not tagging)
|
||||
# is perfect, but this seems better than not tagging.
|
||||
self.msg.tag('repliedTo')
|
||||
try:
|
||||
cb.callCommand(name, self, self.msg, self.args)
|
||||
except Error, e:
|
||||
|
Loading…
Reference in New Issue
Block a user