Skip to content

Commit

Permalink
Typo correction
Browse files Browse the repository at this point in the history
deamon -> daemon

Squashed into a single commit.
  • Loading branch information
lunaticitizen authored and maxpowa committed Apr 4, 2016
1 parent 6f3558d commit 6467386
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sopel/modules/ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def interactive_shell(bot, trigger):
bot.say('A tty is required to start the console')
return
if bot._daemon:
bot.say('Can\'t start console when running as a deamon')
bot.say('Can\'t start console when running as a daemon')
return

# Backup stderr/stdout wrappers
Expand Down
6 changes: 3 additions & 3 deletions sopel/run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main(argv=None):
parser.add_argument('-c', '--config', metavar='filename',
help='use a specific configuration file')
parser.add_argument("-d", '--fork', action="store_true",
dest="deamonize", help="Deamonize sopel")
dest="daemonize", help="Daemonize sopel")
parser.add_argument("-q", '--quit', action="store_true", dest="quit",
help="Gracefully quit Sopel")
parser.add_argument("-k", '--kill', action="store_true", dest="kill",
Expand Down Expand Up @@ -144,7 +144,7 @@ def main(argv=None):

logfile = os.path.os.path.join(config_module.core.logdir, 'stdio.log')

config_module._is_deamonized = opts.deamonize
config_module._is_daemonized = opts.daemonize

sys.stderr = tools.OutputRedirect(logfile, True, opts.quiet)
sys.stdout = tools.OutputRedirect(logfile, False, opts.quiet)
Expand Down Expand Up @@ -187,7 +187,7 @@ def main(argv=None):
elif opts.quit or opts.kill:
stderr('Sopel is not running!')
sys.exit(1)
if opts.deamonize:
if opts.daemonize:
child_pid = os.fork()
if child_pid is not 0:
sys.exit()
Expand Down

0 comments on commit 6467386

Please sign in to comment.