mIRC Homepage
Posted By: tidy_trax hotlinks - 06/02/04 05:06 PM
Code:
on ^*:hotlink:*irc://*.*/*:#:{ .echo -q . }
on *:hotlink:*:*:{ echo -a $hotline }

anyone know why it's not working?
Posted By: qwerty Re: hotlinks - 06/02/04 05:34 PM
Because the : in irc:// is interpreted as a delimiter. Use irc?// instead or make an if statement in the event body.
Posted By: tidy_trax Re: hotlinks - 06/02/04 05:39 PM
thanks

here's the code if anyone wants it:

Code:
alias irclink {
  set %server $1
  set %channel $iif($2,$2)
  dialog -m irclink irclink
  did -ra irclink 1 mIRC has been asked to connect to " $+ %server $+ "
}
dialog irclink {
  title "Server"
  size -1 -1 146 51
  option dbu
  text "mIRC has been asked to connect to ", 1, 1 2 144 8
  radio "Open A New Connection", 2, 0 13 70 10
  radio "Change To Server", 3, 0 24 54 10
  button "Ok", 4, 95 41 25 10
  button "Cancel", 5, 121 41 25 10
}
on *:dialog:irclink:init:*:{ did -c $dname 2 }
on *:dialog:irclink:sclick:*:{
  if $did == 4 { dialog -c $dname }
  elseif $did == 5 {
    unset %server
    unset %channel
    dialog -x $dname
  }
}
on *:dialog:irclink:close:*:{
  server $iif($did(2).state,-m) %server $iif(%channel,-j %channel)
  unset %server
  unset %channel
}
on ^*:hotlink:*irc?//*.*/*:#:{ .echo -q . }
on *:hotlink:*:*:{
  var %server $gettok($1,2,$asc(/)), %channel = $+($chr(35),$gettok($1,3,$asc(/)))
  irclink %server $iif(%channel != $chr(35),%channel)
}
Posted By: Iori Re: hotlinks - 07/02/04 07:14 AM
Personally, I much prefer mIRCs inbuilt "Links Request" dialog. smile
The code is so much simpler too, "run $1" laugh
Posted By: tidy_trax Re: hotlinks - 08/02/04 04:56 PM
i didn't know it had one;\
Posted By: cold Re: hotlinks - 11/02/04 09:49 PM
What's this? I guess I don't know it, or at least I can't remember it, even though I'm very sleepy right now.
Posted By: Iori Re: hotlinks - 13/02/04 02:49 PM
Its the dialog that appears from running/clicking chat links if you have "Confirm requests" on.

Options > IRC > Catcher >
  • --Chat links------------
    | [x] Enable support
    | [x] Confirm requests
    ------------------------

© mIRC Discussion Forums