summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-07-28 12:25:00 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-07-28 12:25:00 (GMT)
commitdd7de6cfb93f8812189f8365a6c8659d0686678d (patch)
tree65678eca06525bdf0acec463fd36070e2d45cd8b /Swiften/MUC/MUC.h
parentea816801a9d73529bbf9eb3800fef8e85a18d6ca (diff)
downloadswift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.zip
swift-contrib-dd7de6cfb93f8812189f8365a6c8659d0686678d.tar.bz2
Allow Swiftob message listeners to ignore the bot's messages
Diffstat (limited to 'Swiften/MUC/MUC.h')
-rw-r--r--Swiften/MUC/MUC.h7
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);