--- a/plugin.py Thu Jun 25 09:04:30 2009 -0700
+++ b/plugin.py Wed Jul 15 17:10:45 2009 -0700
main = wrap(main, ['revision'])
def bts(self, irc, msg, args, issue):
+ url = 'http://mercurial.selenic.com/bts'
- irc.reply('http://mercurial.selenic.com/bts')
if title.startswith('[issue'):
- end = title.find(']') + 1
- title = ircutils.bold(title[:end]) + title[end:]
+ link = '/'.join([url, title[1:end]])
+ title = ircutils.bold(title[:end+1]) + title[end+1:]
title = title.replace('\n', ' ')
bts = wrap(bts, ['text'])
-# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: