You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. March 2011, 17:36:44

TimC

Posts: 201

IRC links > mIRC broken?

Hi,

Added irc protocol to Opera then set it up to launch mIRC instead of Opera's internal client. The two problems I have:

1. Click an IRC link and it will launch mIRC but that is it, it does not seem to be passing any information like server/channel to mIRC.
2. Click an IRC link with mIRC already opened and it opens a new instance of mIRC.

Thought it might be something in mIRC so checked all my settings then tried clicking links in Internet Explorer and everything works perfectly. That is, in IE when I click a link it opens mIRC and sends me to the server/channel and if I click more then 1 link it opens a new window in mIRC rather then spawn a new instance of it.

Is there any way to get this to work correctly in Opera?

Thanks

4. March 2011, 05:09:33 (edited)

burnout426

Posts: 12415

Are you using "Open with default application" or "Opera with other application"? If using the latter, you have to make sure you put all the command line parameters that mIRC needs (if any) in the param field. But, if mIRC is the program currently associated with the IRC protocol on your computer and you use "open with default application", Opera will use the registry settings that mIRC designates and it should just work.

4. March 2011, 05:04:19

TimC

Posts: 201

It's set with Use Default and after the path to mIRC is %1, also the protocol is just irc.

4. March 2011, 05:08:24

burnout426

Posts: 12415

What happens if you try "open with other application"? Does it work then?

You have to click "choose" and browse to the mIRC executable. You shouldn't need anything in the param field. the URL is automatically passed to the program.

4. March 2011, 05:24:07

TimC

Posts: 201

Tried it with "open with other application" with no Parameters. Same issue.

4. March 2011, 05:26:30

burnout426

Posts: 12415

echo %1
pause


Save that as test.bat and set "open with other application" to test.bat. That should show you if Opera's even passing the URL at all. (Also take note of whether the url is quoted or not if present)

4. March 2011, 05:36:17

TimC

Posts: 201

Here is what I got:
C:\Program Files (x86)\Opera>echo "irc://irc.mozilla.org/firefox"
"irc://irc.mozilla.org/firefox"

C:\Program Files (x86)\Opera>pause
Press any key to continue . . .

4. March 2011, 05:50:05

burnout426

Posts: 12415

That looks right.

Try clicking on an irc link in Opera while mIRC is completely closed to see if it makes a difference. If so, it's probably a DDE issue.

And, while mIRC is open, load up a command prompt and try passing the url to the mIRC exe yourself. (Let me know if you need directions for that)

4. March 2011, 06:02:55

burnout426

Posts: 12415

I have mIRC installed and can confirm the problem. I can also confirm that clicking on the irc link in IE causes a "link request" dialog to pop up in mIRC. I will mess around with it to see what I can find.

4. March 2011, 06:04:06

TimC

Posts: 201

If mIRC is not loaded it opens mIRC and just logs me into the last server I was connected. I am not sure how to pass this information to mIRC while it's open.

I just tried IE again with the Mozilla link I am testing and it works exactly as expected; loads mIRC, login to server then joins the channel and if I already have mIRC loaded it opens a new server/channel window within that instance of mIRC.

4. March 2011, 06:05:52

TimC

Posts: 201

Originally posted by burnout426:

I have mIRC installed and can confirm the problem. I can also confirm that clicking on the irc link in IE causes a "link request" dialog to pop up in mIRC. I will mess around with it to see what I can find.



Thanks burnout426, good luck. Hope you are more successful then I was, looking forward to your results.

4. March 2011, 06:07:36

burnout426

Posts: 12415

The problem is that Opera properly quotes the url when it passes it to mIRC. mIRC doesn't like this for some reason. IE passes it unquoted.

Will see if there's a workaround.

4. March 2011, 06:23:18 (edited)

burnout426

Posts: 12415

Compare these too commands:

C:\Program Files\mIRC>mirc.exe irc://irc.mozilla.org/firefox
C:\Program Files\mIRC>mirc.exe "irc://irc.mozilla.org/firefox"


Although it's not necessary to quote the url in this case, it's still best to quote it for security reasons. Yet, mIRC doesn't like it.

As a workaround, I was going to suggest changing the path in "HKEY_CURRENT_USER\Software\Classes\irc\Shell\open\command" in the registry to point to a tiny program/script/batch file that removes the quotes and then passes it to mirc.exe. But, on startup, mirc.exe always resets that key. I guess you could change that key (while mIRC is closed) and then change the permissions so mIRC can't change it. But, that'd be going too far.

Personally, I consider this a bug in mIRC's command line handling.

4. March 2011, 06:20:59

burnout426

Posts: 12415

As a workaround though, in Opera, set "open with other application" to "C:\Program Files\Internet Explorer\iexplore.exe". Then, Opera will temporarily open IE while passing the url to it, IE will pass it along to mIRC and close.

I still suggest reporting this to the mIRC devs. Just pointing them to this thread would be good enough.

4. March 2011, 06:52:07

TimC

Posts: 201

Thanks for the help burnout426. I will look around the mIRC forums and see if anyone else has reported it and if not send something out to mIRC devs. If I get any new information I will update this thread.

Thanks again.

4. March 2011, 12:20:01

burnout426

Posts: 12415

Try this workaround too:

Save:

"%ProgramFiles%\mirc\mirc.exe" %~1


as mirc_proxy.cmd

Then, set "open with other application" to mirc_proxy.cmd. (The ~ will strip the quotes)

4. March 2011, 15:33:09

TimC

Posts: 201

Originally posted by burnout426:

Also, if you don't like the little window the batch file pops up, try mirc_proxy.exe instead.



Very nice, works great.

Thanks

Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news