diff core.lua @ 150:63bda09d88fe

Add 'on5', 'ver[sion]' command arguments, and an on5 dropdown entry.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 08 Jan 2015 16:03:55 -0500
parents df0ca8ed1aff
children 42dd3076baaf
line wrap: on
line diff
--- a/core.lua	Thu Jan 08 15:22:27 2015 -0500
+++ b/core.lua	Thu Jan 08 16:03:55 2015 -0500
@@ -1863,7 +1863,7 @@
 		txt = strtrim(txt:lower())
 		local cmd, arg = ""
 		do
-			local s,e = txt:find("^%a+")
+			local s,e = txt:find("^%w+")
 			if s then
 				cmd = txt:sub(s,e)
 				s = txt:find("%S", e+2)
@@ -1884,6 +1884,7 @@
 		elseif cmd == "on" then                             self:Activate("cmdon",arg)
 		elseif cmd == "off" then                            self:Deactivate()
 		elseif cmd == "broadcast" or cmd == "bcast" then    self:Activate("cmdbcast",nil,true)
+		elseif cmd == "on5" then  self.debug.notraid = true self:Activate("cmdon5",arg)
 
 		elseif cmd == "toggle" then
 			if self.display then
@@ -1922,6 +1923,8 @@
 		elseif cmd == "delete" and arg and arg:len() > 0 then
 			self:save_delete(tonumber(arg))
 
+		elseif cmd:find("^ver") then
+			self:Print(self.status_text)
 		elseif cmd == "help" then
 			self:BuildMainDisplay('help')
 		elseif cmd == "ping" then