Adding @reload/aliases.

This commit is contained in:
Greg Taylor 2009-04-06 22:00:08 +00:00
parent 0e3943a886
commit 48204c5dec
3 changed files with 18 additions and 1 deletions

View file

@ -117,6 +117,12 @@ class EvenniaService(service.Service):
source_object.emit_to(" Reloading %s" % mod_str)
rebuild.rebuild(mod)
logger.log_infomsg("Modules reloaded by %s." % source_object)
def reload_aliases(self, source_object=None):
"""
Reload the aliases from the Alias model into the local table.
"""
alias_mgr.load_cmd_aliases()
def getEvenniaServiceFactory(self):
f = protocol.ServerFactory()