Connect plugin now a Lua implementation

This commit is contained in:
James Booth
2013-09-15 22:18:04 +01:00
parent 25c8461fa4
commit 8d60dfccee
2 changed files with 10 additions and 9 deletions

10
connect.lua Normal file
View File

@@ -0,0 +1,10 @@
local connect = {}
local user = "prof1@panesar"
function connect.prof_on_start()
prof_cons_show("Enter password for " .. user)
prof_send_line("/connect " .. user)
end
return connect

View File

@@ -1,9 +0,0 @@
import prof
user = "prof1@panesar"
def prof_on_start():
global user
prof.cons_show("")
prof.cons_show("Enter password for " + user)
prof.send_line("/connect " + user)