All pastes #1327972 Raw Edit

neoclust

public text v1 · immutable
#1327972 ·published 2009-02-05 13:34 UTC
rendered paste body
Index: src/irc/query.cpp===================================================================--- src/irc/query.cpp	(revision 921669)+++ src/irc/query.cpp	(working copy)@@ -82,7 +82,9 @@     // link "Whois", "Ignore" ... menu items into ircview popup     KMenu* popup=textView->getPopup();     popup->addSeparator();-    popup->insertItem(i18n("&Whois"),Konversation::Whois);+    KAction *whoisAction = new KAction( i18n( "&Whois" ), popup );+    connect(whoisAction, SIGNAL(triggered(bool)), this, SLOT(slotWhoIs());+    popup->addAction(whoisAction);     popup->insertItem(i18n("&Version"),Konversation::Version);     popup->insertItem(i18n("&Ping"),Konversation::Ping);     popup->addSeparator();@@ -693,4 +695,9 @@     } } +void Query::slotWhoIs()+{+        sendQueryText(Preferences::self()->commandChar()+"WHOIS "+name+' '+name);+}+ // #include "./irc/query.moc"Index: src/irc/query.h===================================================================--- src/irc/query.h	(revision 921669)+++ src/irc/query.h	(working copy)@@ -95,6 +95,7 @@         void nickInfoChanged();         void closeWithoutAsking();         virtual void serverOnline(bool online);+        void slotWhoIs();      protected:         void setName(const QString& newName);