Encyclopedia: Trim alert relay message.
This commit is contained in:
parent
57cfd73750
commit
39d64b3e74
|
@ -24,7 +24,7 @@ import supybot
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
__version__ = "4.1.0"
|
__version__ = "4.1.1"
|
||||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||||
__contributors__ = {
|
__contributors__ = {
|
||||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||||
|
|
|
@ -553,7 +553,7 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
else:
|
else:
|
||||||
if self.alert:
|
if self.alert:
|
||||||
if channel and not channel.endswith('bots'):
|
if channel and not channel.endswith('bots'):
|
||||||
irc.reply('%s called the ops in %s (%s)' % (msg.nick, msg.args[0], retmsg),
|
irc.reply('%s called the ops in %s (%s)' % (msg.nick, msg.args[0], retmsg.rstrip(': ')),
|
||||||
to=self.registryValue('relayChannel', channel))
|
to=self.registryValue('relayChannel', channel))
|
||||||
self.alert = False
|
self.alert = False
|
||||||
if retmsg and checkUrl(retmsg):
|
if retmsg and checkUrl(retmsg):
|
||||||
|
|
Loading…
Reference in New Issue