mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-03 08:04:07 +01:00
relay: block sending STATUSMSG messages to IRCds not supporting them
This commit is contained in:
parent
16b491fdab
commit
2df608307d
@ -1393,6 +1393,12 @@ def handle_messages(irc, numeric, command, args):
|
|||||||
log.debug('(%s) relay.handle_messages: sending message to %s from %s on behalf of %s',
|
log.debug('(%s) relay.handle_messages: sending message to %s from %s on behalf of %s',
|
||||||
irc.name, real_target, user, numeric)
|
irc.name, real_target, user, numeric)
|
||||||
|
|
||||||
|
if real_target.startswith(tuple(irc.prefixmodes.values())) and not \
|
||||||
|
remoteirc.has_cap('has-statusmsg'):
|
||||||
|
log.debug("(%s) Not sending message destined to %s/%s because "
|
||||||
|
"the remote does not support STATUSMSG.", irc.name,
|
||||||
|
remoteirc.name, real_target)
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
if notice:
|
if notice:
|
||||||
remoteirc.notice(user, real_target, real_text)
|
remoteirc.notice(user, real_target, real_text)
|
||||||
|
Loading…
Reference in New Issue
Block a user