mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Since I have upgraded to mIRC 2.0, I have noticed that one of my remotes which uses a DLL I wrote, has stopped working. Today I found something in my popups that I had forgotten about which also uses the DLL. The popup works, but the remote does not. Can anyone help me find out why? This is the popup:
Code:
Weather: /var %zip = $$?"ZIP:" | noop $com(weather,GetWeather,3,bstr,%zip) | var %weather = $com(weather).result | .notice $me %weather


This is the remote
Code:
on NOTICE:!weather*:*:{
  if ($com(weather)) {    
    var %zip = $2
    noop $com(weather,GetWeather,3,bstr,%zip)
    var %weather = $com(weather).result
    notice $nick %weather
    echo -a $nick %weather
  }
  else {
    comopen weather weather.GWeather
    var %zip = $2
    noop $com(weather,GetWeather,3,bstr,%zip)
    var %weather = $com(weather).result
    notice $nick %weather 
    echo -a $nick %weather
  }
}

Thanks.
The COM object is opened on START.

Joined: May 2003
Posts: 41
D
Ameglian cow
Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
ON Notice incorrect.
Yours.
Code:
on NOTICE:!weather*:*:{

should be
Code:
on 1:NOTICE:!weather*:*:{

Last edited by Damsulegna; 21/09/06 06:38 AM.

If At First You Don't Succeed, Ask Someone For Help......

Link Copied to Clipboard