Download:
child 34:0497bddba297
parent 32:6f02219bf75b
33:b0e492877263 draft
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.

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
plugin.py file | annotate | diff | comparison | revisions
--- a/plugin.py Thu Nov 22 15:43:56 2018 +0800
+++ b/plugin.py Thu Nov 22 17:17:23 2018 +0800
@@ -95,7 +95,7 @@
if err:
irc.reply(err.splitlines()[0])
else:
- irc.replies(fmt(out))
+ irc.replies(fmt(out), joiner=' ')
hghelp = wrap(hghelp, ['text'])
@@ -120,7 +120,7 @@
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 _changelogcmd(key):
def cmd(self, irc, msg, args, rev):