diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-07-22 17:13:24 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-07-22 17:13:24 (GMT) |
commit | c3c24fd8fb8f91696b4e38e0f212a35a8e1fe137 (patch) | |
tree | 02145bdb8a0f059be43d58c3942c0050ebbae1a9 /Swiftob/MUCs.h | |
parent | 053128df5c36b80c35e8ec5483125305f8fc86ea (diff) | |
download | swift-contrib-c3c24fd8fb8f91696b4e38e0f212a35a8e1fe137.zip swift-contrib-c3c24fd8fb8f91696b4e38e0f212a35a8e1fe137.tar.bz2 |
Allow nick changing and restart for Swiftob bots
Diffstat (limited to 'Swiftob/MUCs.h')
-rw-r--r-- | Swiftob/MUCs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiftob/MUCs.h b/Swiftob/MUCs.h index e727ec2..8f56182 100644 --- a/Swiftob/MUCs.h +++ b/Swiftob/MUCs.h @@ -30,6 +30,8 @@ class MUCs { void part(const JID& room); bool contains(const JID& room); MUC::ref getMUC(const JID& room); + const std::string& getDefaultNick() const {return defaultNick_;} + bool setDefaultNick(const std::string& nick); private: void handleConnected(); void handleJoinFailed(const JID& room, ErrorPayload::ref error, boost::function<void(const std::string& /*reason*/)> failureCallback); |