summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/whispertab.cpp5
-rw-r--r--src/gui/widgets/whispertab.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index c99c4e0c5..33859d8be 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -165,3 +165,8 @@ void WhisperTab::saveToLogFile(std::string &msg)
if (chatLogger)
chatLogger->log(getNick(), msg);
}
+
+void WhisperTab::getAutoCompleteList(std::vector<std::string> &names) const
+{
+ names.push_back(mNick);
+}
diff --git a/src/gui/widgets/whispertab.h b/src/gui/widgets/whispertab.h
index 5bca422a6..8678c932c 100644
--- a/src/gui/widgets/whispertab.h
+++ b/src/gui/widgets/whispertab.h
@@ -33,7 +33,8 @@ class Channel;
class WhisperTab : public ChatTab
{
public:
- const std::string &getNick() const { return mNick; }
+ const std::string &getNick() const
+ { return mNick; }
void showHelp();
@@ -45,6 +46,8 @@ class WhisperTab : public ChatTab
void saveToLogFile(std::string &msg);
+ void getAutoCompleteList(std::vector<std::string> &names) const;
+
protected:
friend class ChatWindow;