Skip to content

Commit

Permalink
Add force pull command
Browse files Browse the repository at this point in the history
  • Loading branch information
angussidney committed Mar 16, 2019
1 parent 9629763 commit 36c6d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatcommands.py
Expand Up @@ -713,14 +713,14 @@ def master():


# noinspection PyIncorrectDocstring,PyProtectedMember
@command(privileged=True)
def pull():
@command(privileged=True, aliases=["pull-force"])
def pull(alias_used='pull'):
"""
Pull an update from GitHub
:return: String on failure, None on success
"""
remote_diff = GitManager.get_remote_diff()
if only_blacklists_changed(remote_diff):
if not alias_used == "pull-force" and only_blacklists_changed(remote_diff):
GitManager.pull_remote()
findspam.FindSpam.reload_blacklists()
GlobalVars.reload()
Expand Down

0 comments on commit 36c6d6e

Please sign in to comment.