Skip to content

Commit

Permalink
Fix reboot command
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Feb 24, 2021
1 parent 5e96f88 commit ec64370
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lurklite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
static_cmds = None

# The version
miniirc.version = f'lurklite v0.4.16 (powered by {miniirc.version})'
miniirc.version = f'lurklite v0.4.17 (powered by {miniirc.version})'

# Throw errors
class BotError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion lurklite/static_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _cmd_reboot(irc, hostmask, is_admin, args):
irc.notice(args[0], '\x037\x1dRebooting...\x1d')
print(is_admin, 'ordered me to reboot.')
time.sleep(0.3)
argv = list(sys.argv)
argv = (sys.executable, '-m', 'lurklite', *sys.argv[1:])

if os.name == 'posix':
# On POSIX systems, just use execvp().
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'lurklite',
version = '0.4.16',
version = '0.4.17',
packages = ['lurklite'],
author = 'luk3yx',
description = 'A miniirc-based IRC bot.',
Expand Down

0 comments on commit ec64370

Please sign in to comment.