Anton Shestakov <av6@dwimlabs.net>, Thu, 22 Nov 2018 17:17:23 +0800
plugin: use custom joiners for hghelp and changelog replies
Using just one message instead of multiple for each line means less flood, so
Limnoria does it by default. But the default joiner ("a, b, and c") is not very
suitable for lines that refer to just one thing.
--- a/plugin.py Thu Nov 22 15:43:56 2018 +0800
+++ b/plugin.py Thu Nov 22 17:17:23 2018 +0800
irc.reply(err.splitlines()[0])
+ irc.replies(fmt(out), joiner=' ')
hghelp = wrap(hghelp, ['text'])
baseurl, err = self.hg.run(['-R', repo, 'paths', 'default'])
url = "%s/rev/%s" % (baseurl.strip("\n/"), rev)
- irc.replies(lines[:2] + [url])
+ irc.replies(lines[:2] + [url], joiner=' - ')
def cmd(self, irc, msg, args, rev):