Merge branch 'master' of https://github.com/evennia/evennia into puzzles
This commit is contained in:
commit
cb44de5532
1 changed files with 4 additions and 1 deletions
|
|
@ -7,6 +7,8 @@ make sure to homogenize self.caller to always be the account object
|
||||||
for easy handling.
|
for easy handling.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
import hashlib
|
||||||
|
import time
|
||||||
from past.builtins import cmp
|
from past.builtins import cmp
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.comms.models import ChannelDB, Msg
|
from evennia.comms.models import ChannelDB, Msg
|
||||||
|
|
@ -918,8 +920,9 @@ class CmdIRC2Chan(COMMAND_DEFAULT_CLASS):
|
||||||
self.msg("Account '%s' already exists and is not a bot." % botname)
|
self.msg("Account '%s' already exists and is not a bot." % botname)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
password = hashlib.md5(str(time.time())).hexdigest()[:11]
|
||||||
try:
|
try:
|
||||||
bot = create.create_account(botname, None, None, typeclass=botclass)
|
bot = create.create_account(botname, None, password, typeclass=botclass)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.msg("|rError, could not create the bot:|n '%s'." % err)
|
self.msg("|rError, could not create the bot:|n '%s'." % err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue