diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-07-28 12:25:00 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-07-28 12:25:00 (GMT) |
commit | dd7de6cfb93f8812189f8365a6c8659d0686678d (patch) | |
tree | 65678eca06525bdf0acec463fd36070e2d45cd8b /Swiften | |
parent | ea816801a9d73529bbf9eb3800fef8e85a18d6ca (diff) | |
download | swift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.zip swift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.tar.bz2 |
Allow Swiftob message listeners to ignore the bot's messages
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/MUC/MUC.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/MUC/MUC.h b/Swiften/MUC/MUC.h index 85f4564..ff03ebc 100644 --- a/Swiften/MUC/MUC.h +++ b/Swiften/MUC/MUC.h @@ -89,14 +89,15 @@ namespace Swift { /* boost::signal<void (const blah&)> onItemsResult; */ + const std::string& getOwnNick() const { + return ownMUCJID.getResource(); + } + private: bool isFromMUC(const JID& j) const { return ownMUCJID.equals(j, JID::WithoutResource); } - const std::string& getOwnNick() const { - return ownMUCJID.getResource(); - } private: void handleIncomingPresence(Presence::ref presence); |