|
|
@ -25,7 +25,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
_addon.author = 'atom0s'; |
|
|
|
_addon.author = 'atom0s'; |
|
|
|
_addon.name = 'ChangeCall'; |
|
|
|
_addon.name = 'ChangeCall'; |
|
|
|
_addon.version = '1.0.1'; |
|
|
|
_addon.version = '1.0.2'; |
|
|
|
|
|
|
|
|
|
|
|
require 'common' |
|
|
|
require 'common' |
|
|
|
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ ashita.register_event('command', function(command, ntype) |
|
|
|
|
|
|
|
|
|
|
|
-- Pull the new call id to use.. |
|
|
|
-- Pull the new call id to use.. |
|
|
|
local callid = string.gsub(command, '/changecall', ''):trim(); |
|
|
|
local callid = string.gsub(command, '/changecall', ''):trim(); |
|
|
|
if (callid == nil or string.len(callid) == 0) then |
|
|
|
if (callid == nil or string.len(callid) == 0 or tonumber(callid) == nil) then |
|
|
|
settings.callid = 0; |
|
|
|
settings.callid = 0; |
|
|
|
else |
|
|
|
else |
|
|
|
settings.callid = tonumber(callid); |
|
|
|
settings.callid = tonumber(callid); |
|
|
|