'lo,
I'm having a weird issue with sockets.
I have a daemon im connecting to that returns time elapsed since a certain date, mirc ten reads the input from the daemon and prints the exact text to the screen.
I noticed mirc was reading the numbers wrong, any suggestions?
-------
SERVER REPLYS WITH: 15650343
MIRC THINKS IT SAYS: 1450582
-------
i dont know what mirc is doing to the numbers, but here's my sockread event:
on 1:sockread:ptilookup:{
if (%ptil.stop == yes) { sockclose ptilookup | halt }
if ($sockerr > 0) return
:nextread
sockread -f %temp2
if ($sockbr <= 0) { ptil.action }
if (%temp2 == $null) return
;;;;ECHO HERE FOR DEBUGGING!
echo -a Read: %temp2
;;;;END DEBUGGING
if (*Username:* iswm %temp2) { set %ptil.action user }
if (*Password* iswm %temp2) { set %ptil.action pass }
if (*Command* iswm %temp2) { set %ptil.action last }
if (*invalid*username*or*password* iswm %temp) { set %pti;.action invalid }
set %ptil.stuff %temp2
goto nextread
}