Revert "!freload: reload modules/wolfgame.py too"

This reverts commit d9ad499f78.

It doesn't quite work out well.
This commit is contained in:
nyuszika7h 2014-04-30 18:56:29 +02:00
parent 7455bcaf8a
commit 0ed3fa249c

View File

@ -3146,8 +3146,6 @@ def freload(cli, nick, chan, rest):
# No, this doesn't clear the stasis list. # No, this doesn't clear the stasis list.
reload(var) reload(var)
reload(botconfig) reload(botconfig)
with open(__file__, 'r') as fd:
exec(fd.read())
except ImportError: except ImportError:
if chan == nick: if chan == nick:
pm(cli, nick, '{0}: {1}'.format(type(e), e)) pm(cli, nick, '{0}: {1}'.format(type(e), e))
@ -3159,7 +3157,7 @@ def freload(cli, nick, chan, rest):
if chan == nick: if chan == nick:
pm(cli, nick, '{0}: {1}'.format(type(e), e)) pm(cli, nick, '{0}: {1}'.format(type(e), e))
else: else:
cli.msg(chan, 'Reloaded.') cli.msg(chan, 'Reloaded config.')
@pmcmd("freload", "frehash", admin_only=True) @pmcmd("freload", "frehash", admin_only=True)
def freload_pm(cli, nick, rest): def freload_pm(cli, nick, rest):