Changeset 3b8e4be6 for protocols/purple/purple.c
- Timestamp:
- 2017-01-03T06:30:38Z (8 years ago)
- Branches:
- master
- Children:
- 683e4e0
- Parents:
- 188b75e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r188b75e r3b8e4be6 1197 1197 } 1198 1198 1199 /* Handles write_im and write_chat. Removes echoes of locally sent messages */ 1199 /* Handles write_im and write_chat. Removes echoes of locally sent messages. 1200 * 1201 * PURPLE_MESSAGE_DELAYED is used for chat backlogs - if a message has both 1202 * that flag and _SEND, it's a self-message from before joining the channel. 1203 * Those are safe to display. The rest (with just _SEND) may be echoes. */ 1200 1204 static void prplcb_conv_msg(PurpleConversation *conv, const char *who, const char *message, PurpleMessageFlags flags, time_t mtime) 1201 1205 { 1202 if ( !(flags & PURPLE_MESSAGE_SEND)) {1203 handle_conv_msg(conv, who, message, 0, mtime);1206 if ((!(flags & PURPLE_MESSAGE_SEND)) || (flags & PURPLE_MESSAGE_DELAYED)) { 1207 handle_conv_msg(conv, who, message, (flags & PURPLE_MESSAGE_SEND) ? OPT_SELFMESSAGE : 0, mtime); 1204 1208 } 1205 1209 }
Note: See TracChangeset
for help on using the changeset viewer.