to by wyglądało tak(funkcja IStatus w status notify) :
CODE
---------------------------------------------------
-- status
---------------------------------------------------
-- argumenty: status i info to string
-- cntID to number
-- nie zwraca niczego
---------------------------------------------------
function IStatus (cntID, status, info)
oldstatus = KCntInfo(cntID, "status")
local uid, net = KCntGetUID(cntID)
local displej = ""
-- spr czy zmiana statusu z niedostepnego na inny lub odwrotnie
-- if (oldstatus ~= status) then
local gender = KCntInfo(cntID, "gender")
if gender == "undefined" then
local name = KCntInfo(cntID, "name")
if string.sub(name, -1) == "a" then
gender = "female"
else
gender = "male"
end
end
if KCfgGet("notify.silent") == "0" then
if KCntInfo(cntID, "display") ~= "" then
displej=KCntInfo(cntID, "display")
else
displej=uid
end
if status == ST.online then
if gender == "male" then
KNotify("<b>"..displej.."<b> jest dostępny", KCntInfo(cntID, "net"), status)
else
KNotify("<b>"..displej.."<b> jest dostępna", KCntInfo(cntID, "net"), status)
end
elseif status == ST.away then
if gender == "male" then
KNotify("<b>"..displej.."<b> zaraz wraca", KCntInfo(cntID, "net"), status)
else
KNotify("<b>"..displej.."<b> zaraz wraca", KCntInfo(cntID, "net"), status)
end
elseif status == ST.dnd then
if gender == "male" then
KNotify("<b>"..displej.."<b> jest zajęty", KCntInfo(cntID, "net"), status)
else
KNotify("<b>"..displej.."<b> jest zajęta", KCntInfo(cntID, "net"), status)
end
elseif status == ST.offline then
if gender == "male" then
KNotify("<b>"..displej.."<b> jest niedostępny", KCntInfo(cntID, "net"), status)
else
KNotify("<b>"..displej.."<b> jest niedostępna", KCntInfo(cntID, "net"), status)
end
end
end;
-- end;
local qw = ""
if status == 0 then
qw = "niedostępny";
elseif status == 65 then
qw = "zaraz wracam";
elseif status == 34 then
qw = "nie przeszkadzać";
elseif status == 64 then
qw = "dostępny";
elseif status == 68 then
qw = "auto-away";
else
qw = status;
end;
local oqw = ""
if oldstatus == 0 then
oqw = "niedostępny";
elseif oldstatus == 65 then
oqw = "zaraz wracam";
elseif oldstatus == 34 then
oqw = "nie przeszkadzać";
elseif oldstatus == 64 then
oqw = "dostępny";
elseif oldstatus == 68 then
oqw = "auto-away";
else
oqw = oldstatus;
end;
local net2 = net
if net == 15 then
net2="KLan";
elseif net == 10 then
net2="GG";
end;
-- if oldstatus~=status or info ~= "" then
if net == 15 then
KLog(KCntInfo(cntID, "display").." ("..uid.."@"..net2..") zmienił status z "..oqw.." na "..qw, -1)
else
KLog(KCntInfo(cntID, "display").." ("..uid.."@"..net2..") zmienił status z "..oqw.." na "..qw.."(\""..info..'")', -1)
end;
-- end;
if oldstatus == 0 and status ~= 0 and Flash == 1 then
pSetFlashTime(500);
pFlashAsync(2);
end;
end
ps sprawdzałem, zmieniałem status na normalnym gg z niedostepnego na ukryty i NIC, ta wersja będzie pokazywała tip'a nawet jak ktoś zmieni opis