mIRC Home    About    Download    Register    News    Help

Print Thread
#70465 06/02/04 05:06 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on ^*:hotlink:*irc://*.*/*:#:{ .echo -q . }
on *:hotlink:*:*:{ echo -a $hotline }

anyone know why it's not working?


New username: hixxy
#70466 06/02/04 05:34 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Because the : in irc:// is interpreted as a delimiter. Use irc?// instead or make an if statement in the event body.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#70467 06/02/04 05:39 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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)
}


New username: hixxy
#70468 07/02/04 07:14 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Personally, I much prefer mIRCs inbuilt "Links Request" dialog. smile
The code is so much simpler too, "run $1" laugh

#70469 08/02/04 04:56 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i didn't know it had one;\


New username: hixxy
#70470 11/02/04 09:49 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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.


* cold edits his posts 24/7
#70471 13/02/04 02:49 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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
    ------------------------



Link Copied to Clipboard