aboutsummaryrefslogtreecommitdiffstats
path: root/local/theme/DefaultTheme.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-01-04 00:27:19 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-01-04 00:27:19 +0200
commit7f46f55d67c50f50dc51a00d2487250c4c1e5e94 (patch)
tree3247bdc33b5125b79433a1089dee2577b51c51ee /local/theme/DefaultTheme.py
parentfb353478e24e5e4341b86fec3a390906e5e8ce74 (diff)
downloadsupybot_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.py5
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),

© 2014-2024 Faster IT GmbH | imprint | privacy policy