- Timestamp:
- 2015-10-30T10:27:20Z (9 years ago)
- Branches:
- master
- Children:
- fb2338d
- Parents:
- 0db6618
- git-author:
- dequis <dx@…> (13-09-15 04:17:14)
- git-committer:
- dequis <dx@…> (30-10-15 10:27:20)
- Location:
- protocols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.h
r0db6618 r345577b 105 105 gboolean (*user_status)(bee_t *bee, struct bee_user *bu, struct bee_user *old); 106 106 /* On every incoming message. sent_at = 0 means unknown. */ 107 gboolean (*user_msg)(bee_t *bee, bee_user_t *bu, const char *msg, time_t sent_at);107 gboolean (*user_msg)(bee_t *bee, bee_user_t *bu, const char *msg, guint32 flags, time_t sent_at); 108 108 /* Flags currently defined (OPT_TYPING/THINKING) in nogaim.h. */ 109 109 gboolean (*user_typing)(bee_t *bee, bee_user_t *bu, guint32 flags); … … 118 118 /* System messages of any kind. */ 119 119 gboolean (*chat_log)(bee_t *bee, struct groupchat *c, const char *text); 120 gboolean (*chat_msg)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *msg, time_t sent_at);120 gboolean (*chat_msg)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *msg, guint32 flags, time_t sent_at); 121 121 gboolean (*chat_add_user)(bee_t *bee, struct groupchat *c, bee_user_t *bu); 122 122 gboolean (*chat_remove_user)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *reason); -
protocols/bee_chat.c
r0db6618 r345577b 95 95 } 96 96 97 void imcb_chat_msg(struct groupchat *c, const char *who, char *msg, uint32_tflags, time_t sent_at)97 void imcb_chat_msg(struct groupchat *c, const char *who, char *msg, guint32 flags, time_t sent_at) 98 98 { 99 99 struct im_connection *ic = c->ic; 100 100 bee_t *bee = ic->bee; 101 101 bee_user_t *bu; 102 gboolean temp ;102 gboolean temp = FALSE; 103 103 char *s; 104 104 105 /* Gaim sends own messages through this too. IRC doesn't want this, so kill them */ 106 if (handle_is_self(ic, who)) { 105 if (handle_is_self(ic, who) && !(flags & OPT_SELFMESSAGE)) { 107 106 return; 108 107 } … … 122 121 123 122 if (bee->ui->chat_msg) { 124 bee->ui->chat_msg(bee, c, bu, msg, sent_at);123 bee->ui->chat_msg(bee, c, bu, msg, flags, sent_at); 125 124 } 126 125 -
protocols/bee_user.c
r0db6618 r345577b 247 247 } 248 248 249 void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *msg, uint32_tflags, time_t sent_at)249 void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *msg, guint32 flags, time_t sent_at) 250 250 { 251 251 bee_t *bee = ic->bee; … … 265 265 266 266 if (bee->ui->user_msg && bu) { 267 bee->ui->user_msg(bee, bu, msg, sent_at);267 bee->ui->user_msg(bee, bu, msg, flags, sent_at); 268 268 } else { 269 269 imcb_log(ic, "Message from unknown handle %s:\n%s", handle, msg); … … 297 297 } 298 298 299 void imcb_buddy_typing(struct im_connection *ic, const char *handle, uint32_tflags)299 void imcb_buddy_typing(struct im_connection *ic, const char *handle, guint32 flags) 300 300 { 301 301 bee_user_t *bu; -
protocols/nogaim.h
r0db6618 r345577b 70 70 #define OPT_PONGS 0x00010000 /* Service sends us keep-alives */ 71 71 #define OPT_PONGED 0x00020000 /* Received a keep-alive during last interval */ 72 #define OPT_SELFMESSAGE 0x00080000 /* A message sent by self from another location */ 72 73 73 74 /* ok. now the fun begins. first we create a connection structure */ … … 325 326 G_MODULE_EXPORT void imcb_buddy_action_response(bee_user_t *bu, const char *action, char * const args[], void *data); 326 327 327 G_MODULE_EXPORT void imcb_buddy_typing(struct im_connection *ic, const char *handle, uint32_tflags);328 G_MODULE_EXPORT void imcb_buddy_typing(struct im_connection *ic, const char *handle, guint32 flags); 328 329 G_MODULE_EXPORT struct bee_user *imcb_buddy_by_handle(struct im_connection *ic, const char *handle); 329 330 G_MODULE_EXPORT void imcb_clean_handle(struct im_connection *ic, char *handle);
Note: See TracChangeset
for help on using the changeset viewer.