Try to use this code (remove the old) :

Code:
alias streamstatus {
  if (!$1) { return }
  if ($me !ison $1) { return }
  var %j = stream_ $+ $ticks $+ $ctime
  JSONOpen -ud %j https://api.twitch.tv/kraken/streams/ $+ $mid($1,2) $+ ?= $+ $ticks
  var %status = $json(%j,status)
  if (!%status) { set %status_ [ $+ [ $mid($1,2) ] ] Offline }
  else { set %status_ [ $+ [ $mid($1,2) ] ] Online }
}

ON *:JOIN:#: {
  if ($nick == $me) { .timer[STREM_CHECK_ $+ $chan $+ ] 0 120 streamstatus $chan | streamStatus $chan }
}

Last edited by westor; 29/12/15 07:25 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-