util.events: Remove an event's table when it has no more handlers.
[prosody.git] / prosodyctl
index c7ef93edb385d0e7401bc5258437b19719044bdb..cfc5ca77a979d74268a5483455984ec2da170462 100755 (executable)
@@ -33,9 +33,11 @@ end
 
 -- Global 'prosody' object
 prosody = {
-       hosts = {},
-       events = require "util.events".new(),
-       platform = "posix"
+       hosts = {};
+       events = require "util.events".new();
+       platform = "posix";
+       lock_globals = function () end;
+       unlock_globals = function () end;
 };
 local prosody = prosody;
 
@@ -329,7 +331,7 @@ function commands.adduser(arg)
        
        if ok then return 0; end
        
-       show_message(error_messages[msg])
+       show_message(msg)
        return 1;
 end