Changeset be1efa3 for protocols/bee_chat.c
- Timestamp:
- 2015-01-26T02:43:34Z (10 years ago)
- Branches:
- master
- Children:
- fcb2c2e
- Parents:
- 8519f45
- git-author:
- dequis <dx@…> (20-07-14 06:28:49)
- git-committer:
- dequis <dx@…> (26-01-15 02:43:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee_chat.c
r8519f45 rbe1efa3 80 80 } 81 81 82 static gboolean handle_is_self( struct im_connection *ic, const char *handle ) 83 { 84 return ( ic->acc->prpl->handle_is_self ) ? 85 ic->acc->prpl->handle_is_self( ic, handle ) : 86 ( ic->acc->prpl->handle_cmp( ic->acc->user, handle ) == 0 ); 87 } 88 82 89 void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at ) 83 90 { … … 89 96 90 97 /* Gaim sends own messages through this too. IRC doesn't want this, so kill them */ 91 if( g_strcasecmp( who, ic->acc->user ) == 0)98 if( handle_is_self( ic, who ) ) 92 99 return; 93 100 … … 139 146 if( who == NULL) 140 147 bu = NULL; 141 else if( g_strcasecmp( who, ic->acc->user ) == 0)148 else if( handle_is_self( ic, who ) ) 142 149 bu = bee->user; 143 150 else … … 161 168 imcb_log( c->ic, "User %s added to conversation %p", handle, c ); 162 169 163 me = ic->acc->prpl->handle_cmp( handle, ic->acc->user ) == 0;170 me = handle_is_self( ic, handle ); 164 171 165 172 /* Most protocols allow people to join, even when they're not in … … 189 196 190 197 /* It might be yourself! */ 191 if( g_strcasecmp( handle, ic->acc->user ) == 0)198 if( handle_is_self( ic, handle ) ) 192 199 { 193 200 if( c->joined == 0 )
Note: See TracChangeset
for help on using the changeset viewer.