diff options
author | kongr45gpen <electrovesta@gmail.com> | 2017-01-04 00:27:19 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2017-01-04 00:27:19 +0200 |
commit | 7f46f55d67c50f50dc51a00d2487250c4c1e5e94 (patch) | |
tree | 3247bdc33b5125b79433a1089dee2577b51c51ee /local/theme/DefaultTheme.py | |
parent | fb353478e24e5e4341b86fec3a390906e5e8ce74 (diff) | |
download | supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.gz supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.bz2 supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.zip |
Note when a push is forced
Diffstat (limited to 'local/theme/DefaultTheme.py')
-rw-r--r-- | local/theme/DefaultTheme.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py index 3442383..96259d0 100644 --- a/local/theme/DefaultTheme.py +++ b/local/theme/DefaultTheme.py @@ -3,10 +3,11 @@ from Theme import Theme from ..utility import * class DefaultTheme(Theme): - def push(self, branch, actor, count, url): - self.msgs.append( "%s: %s pushed %s %s %s%s" % ( + def push(self, branch, actor, count, forced, url): + self.msgs.append( "%s: %s %s %s %s %s%s" % ( self.repo(branch), ircutils.mircColor(actor, "green"), + colorAction("force pushed") if forced else "pushed", ircutils.bold(str(count)), plural(count, "commit", "commits"), self.enclose(url), |