Revert "!freload: reload modules/wolfgame.py too"
This reverts commit d9ad499f78
.
It doesn't quite work out well.
This commit is contained in:
parent
7455bcaf8a
commit
0ed3fa249c
@ -3146,8 +3146,6 @@ def freload(cli, nick, chan, rest):
|
||||
# No, this doesn't clear the stasis list.
|
||||
reload(var)
|
||||
reload(botconfig)
|
||||
with open(__file__, 'r') as fd:
|
||||
exec(fd.read())
|
||||
except ImportError:
|
||||
if chan == nick:
|
||||
pm(cli, nick, '{0}: {1}'.format(type(e), e))
|
||||
@ -3159,7 +3157,7 @@ def freload(cli, nick, chan, rest):
|
||||
if chan == nick:
|
||||
pm(cli, nick, '{0}: {1}'.format(type(e), e))
|
||||
else:
|
||||
cli.msg(chan, 'Reloaded.')
|
||||
cli.msg(chan, 'Reloaded config.')
|
||||
|
||||
@pmcmd("freload", "frehash", admin_only=True)
|
||||
def freload_pm(cli, nick, rest):
|
||||
|
Loading…
Reference in New Issue
Block a user