KVIrc
KVIrc copied to clipboard
event for ip double click
Reported by Nakre on 24 Jan 2011 23:59:19 UTC the double clicking ip in all windows checks for dns which fails in masked ips servers like
(01:56:35) Looking up host F4E2966D.EB382A23.68AEBD4A.IP...
(01:56:35) DNS Lookup result for query "F4E2966D.EB382A23.68AEBD4A.IP"
(01:56:35) Error: Dns query failed
Can we get a new event for the double clicking ip in "channel" that we can use it for scripting ? (like banning them would be easier)
Migrated from: https://svn.kvirc.de/kvirc/ticket/1080
Comment by wodim on 25 Jan 2011 00:04:02 OnHostLinkClick (works for one click only).
Comment by Nakre on 25 Jan 2011 00:18:54 thanks egns, i have tested this one already, its just a really slow when u try some ips quickly, if there is a way to sort that, wouldnt need the double click event i guess.
Modified by ctrlaltca on 27 Jan 2011 21:57:21 Version: none → 4.1 Equilibrium
@AndrioCelos any thoughts mate?
I'm for this.
The /host KVS command could be used to move the existing behaviour to KVS.
Another note: the tooltip might need to be changed.
host is not available on Windows, although another cross-platform solution might exist (nslookup?)
The /host KVS command could be used to move the existing behaviour to KVS.
That is what is currently used.
if you right click over a user mask and run DNS check youre running host -a $0 check the popups.
changing tooltips shouldn't be an issue. just need a cross platform solution that works for both masked and not.
nslookup would probably work. but needs to be implemented somewhere
/host is working on Ubuntu here.
Doest work here on my mask on Ubuntu, never has, it doesnt work on yours for instance, works on Angelina and a few other people but mostly it fails.


Seems to work properly according to your gif
On Aug 18, 2016, at 11:42 AM, un1versal [email protected] wrote:
Doest work here on my mask on Ubuntu, never has, it doesnt work on yours for instance, works on Angelina and a few other people but mostly it fails.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
doh I overwrote the other gif with the broken stuff
its like the first post anywho...
Doest work here on my mask on Ubuntu, never has, it doesnt work on yours for instance, works on Angelina and a few other people but mostly it fails.
Well, out of the three I saw you try (Andrio, DarthGandalf, and Angelina), only Angelina's is a resolvable address, so only Angelina's will have a result from /host. This is the way dns works. I'm not seeing anything broken with /host in your gifs nor on my Ubuntu box.
I'm not seeing anything needed to be fixed for the original ticket either, so has this been hijacked for a windows /host feature request or can we close it?
The request was for a KVS event that would trigger when a hostname link is double-clicked.
Can we get a new event for the double clicking ip in "channel" that we can use it for scripting ? (like banning them would be easier)
that was the request, or no?
wouldnt need the double click event i guess
I think he said as long as the speed was fine, he wouldn't need the requested event. From what I can see, the speed is fast.
Also, OnHostLinkClick will do what he needs. I don't see the point of adding a hostname link double-click event (edit: rather, I'm not convinced there's a need for one).
this is already possible also by reusing the channel popup prologue/control feature he can look at
channel prologue https://github.com/kvirc/KVIrc/blob/master/data/defscript/popups.kvs#L1614-L1661
and
control popup https://github.com/kvirc/KVIrc/blob/master/data/defscript/popups.kvs#L1702-L1808
its all scripted there with a little imagination, translpanting the code or whateer he wants to do, doesnt require much else.
edit
If I was going to do it I would extend the hostpopup and OnHostLinkPopupRequest and add the prologue there and the control popup there.
what could be done from our side is make the prologue and the control popup portion separated from the channel popup, so it could be called as external menu to make reusing much easier and cleaner.
I should have this proposal done in PR in a minute
OK done as proof of concept in #2141 that with some minor modification its possible to do already via script/popups/events
#2141 doesnt work as is with IP's/Hostnames, the prologue would need more work to account for the extended usage.
sadly I dont care to do this work as beyond this part, my interest is 0 on this request. imo KVIrc would be better served by having a more comprehensive user control popup and /kb alias