Bug 123815

Summary: Please add DCOP calls which return information
Product: [Applications] konversation Reporter: Dennis Schridde <heri+kde>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: 0.19   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dennis Schridde 2006-03-17 22:43:25 UTC
Version:           0.19 (using KDE KDE 3.5.1)
Installed from:    Gentoo Packages

I'd like to have DCOP calls that return certain informations.
For example I wanted to create a script, which resolves the IP from a given nickname.
I intended to get the /whois info on that nick using the dcop raw command. Then I wanted to grep the hostname from the n= part and get the IP by pinging that host.
Problem was that raw doesn't return the server's response but instead sends it to the chat window.
So I'd recommend either a raw command, which returns the server's response, or several commands which return specific pieces of information (eg. hostname, ip).
Comment 1 Eike Hein 2006-03-17 23:09:26 UTC
Note that Konversation has a /dns command to resolve user hostnames, in case you wanted to relay that information to the chat view.
Comment 2 Dennis Schridde 2006-03-19 12:15:31 UTC
Thanks for the tip! That's exactly what I wanted. :)

But still I think it should be possible to get the server's response to a raw command(without sending it to the chat view), as this might also be useful for other scripts...
Comment 3 Eike Hein 2008-05-01 13:24:58 UTC

*** This bug has been marked as a duplicate of 114237 ***