Add shortcuts to some possibly useful functions.

This commit is contained in:
Lefteris Chatzimparmpas 2012-02-21 20:13:55 +01:00
parent 51da675056
commit 95ce717bcf
3 changed files with 6 additions and 0 deletions

View File

@ -272,6 +272,8 @@ function Account.unsubscribe_mailbox(self, name)
return r
end
Account.login = Account._login_user
Account.logout = Account._logout_user
Account._mt.__index = function () end
Account._mt.__newindex = function () end

View File

@ -63,3 +63,5 @@ function become_daemon(interval, commands, nochdir, noclose)
commands()
until ifsys.sleep(interval) ~= 0
end
sleep = ifsys.sleep

View File

@ -1151,6 +1151,8 @@ function Mailbox.enter_idle(self)
return r
end
Mailbox.select = _cached_select
Mailbox.close = _cached_close
Mailbox._mt.__index = function () end
Mailbox._mt.__newindex = function () end