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 /Swiftob/Commands.h | |
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 'Swiftob/Commands.h')
-rw-r--r-- | Swiftob/Commands.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiftob/Commands.h b/Swiftob/Commands.h index d5aac2c..1b8e432 100644 --- a/Swiftob/Commands.h +++ b/Swiftob/Commands.h @@ -21,8 +21,8 @@ namespace Swift { class Storage; class Commands { - typedef boost::function<void(Swift::Message::ref)> ListenerCallback; public: + typedef std::pair<boost::function<void(Swift::Message::ref)>, bool> ListenerCallback; enum RoleList {Anyone, Owner}; public: class Command { |