diff options
author | James Booth <boothj5@gmail.com> | 2013-06-23 17:38:30 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-06-23 17:38:30 +0100 |
commit | d5e9ca649dff53e7696e1f590a087001cc9b03f5 (patch) | |
tree | f77563239a7e6388da7a1e541c5cf48b34a1ed41 /src/profanity.c | |
parent | dace47e5d334a9fd7be8a73d83b8108988f78e49 (diff) | |
download | profani-tty-d5e9ca649dff53e7696e1f590a087001cc9b03f5.tar.gz |
Show messages on /group add and /group remove
closes #189 closes #190
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c index d67cd6a9..9c729ca1 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -165,6 +165,22 @@ prof_handle_not_in_group(const char * const contact, } void +prof_handle_group_add(const char * const contact, + const char * const group) +{ + ui_group_added(contact, group); + ui_current_page_off(); +} + +void +prof_handle_group_remove(const char * const contact, + const char * const group) +{ + ui_group_removed(contact, group); + ui_current_page_off(); +} + +void prof_handle_error_message(const char *from, const char *err_msg) { win_type_t win_type = ui_current_win_type(); |