logs/evennia.log is now writing once more. Also fixed a stupid indentation error.
This commit is contained in:
parent
b6c869b076
commit
9457e19787
3 changed files with 7 additions and 3 deletions
|
|
@ -514,9 +514,9 @@ def cmd_set(cdat):
|
||||||
return
|
return
|
||||||
|
|
||||||
victim = functions_db.standard_plr_objsearch(session, eq_args[0])
|
victim = functions_db.standard_plr_objsearch(session, eq_args[0])
|
||||||
# Use standard_plr_objsearch to handle duplicate/nonexistant results.
|
# Use standard_plr_objsearch to handle duplicate/nonexistant results.
|
||||||
if not victim:
|
if not victim:
|
||||||
return
|
return
|
||||||
|
|
||||||
if not pobject.controls_other(victim):
|
if not pobject.controls_other(victim):
|
||||||
session.msg(defines_global.NOCONTROL_MSG)
|
session.msg(defines_global.NOCONTROL_MSG)
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ from django.db import connection
|
||||||
|
|
||||||
from apps.config.models import CommandAlias
|
from apps.config.models import CommandAlias
|
||||||
from session import SessionProtocol
|
from session import SessionProtocol
|
||||||
|
import settings
|
||||||
import scheduler
|
import scheduler
|
||||||
import functions_general
|
import functions_general
|
||||||
import session_mgr
|
import session_mgr
|
||||||
|
|
@ -22,6 +23,7 @@ import initial_setup
|
||||||
class EvenniaService(service.Service):
|
class EvenniaService(service.Service):
|
||||||
|
|
||||||
def __init__(self, filename="blah"):
|
def __init__(self, filename="blah"):
|
||||||
|
log.startLogging(open(settings.LOGFILE, 'w'))
|
||||||
self.cmd_alias_list = {}
|
self.cmd_alias_list = {}
|
||||||
self.game_running = True
|
self.game_running = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,3 +79,5 @@ INSTALLED_APPS = (
|
||||||
'apps.helpsys',
|
'apps.helpsys',
|
||||||
'apps.genperms',
|
'apps.genperms',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
LOGFILE = 'logs/evennia.log'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue