Registering IRC as an Evennia Service, can now be controlled with @service/start/stop.

At the moment this only works with the initial IRC channel (the one set in preferences),
those channels you add later with @ircjoin does not add as Services; when setting it up
they add just fine, but the bot does not connect - I don't know why (code is commented out
in src/commands/irc.py).
/Griatch
This commit is contained in:
Griatch 2009-08-30 17:28:56 +00:00
parent cb7ee081f5
commit c5c8505582
4 changed files with 40 additions and 16 deletions

View file

@ -177,7 +177,7 @@ def cmd_service(command):
source_object = command.source_object
switches = command.command_switches
if not switches or switches[0] not in ["list","start","stop"]:
source_object.emit_to("Usage @servive/<start|stop|list> [service]")
source_object.emit_to("Usage: @servive/<start|stop|list> [service]")
return
switch = switches[0].strip()
sname = source_object.get_name(show_dbref=False)