| 1174 |
1174 |
| 1175 GList *bp = buddy_pounces; |
1175 GList *bp = buddy_pounces; |
| 1176 |
1176 |
| 1177 who = g_strdup(normalize(name)); |
1177 who = g_strdup(normalize(name)); |
| 1178 |
1178 |
| |
1179 /* FIXME: we should decide somewhere who we're pouncing as */ |
| 1179 while(bp) { |
1180 while(bp) { |
| 1180 b = (struct buddy_pounce *)bp->data;; |
1181 b = (struct buddy_pounce *)bp->data;; |
| 1181 bp = bp->next; /* increment the list here because rem_bp can make our handle bad */ |
1182 bp = bp->next; /* increment the list here because rem_bp can make our handle bad */ |
| 1182 |
1183 |
| 1183 if (!strcasecmp(who, normalize(b->name))) { |
1184 if (!strcasecmp(who, normalize(b->name))) { |
| 1193 if (c == NULL) |
1194 if (c == NULL) |
| 1194 c = new_conversation(name); |
1195 c = new_conversation(name); |
| 1195 |
1196 |
| 1196 write_to_conv(c, b->message, WFLAG_SEND, NULL); |
1197 write_to_conv(c, b->message, WFLAG_SEND, NULL); |
| 1197 |
1198 |
| 1198 serv_send_im(name, b->message, 0); |
1199 serv_send_im(c->gc, name, b->message, 0); |
| 1199 } |
1200 } |
| 1200 |
1201 |
| 1201 rem_bp(NULL, b); |
1202 rem_bp(NULL, b); |
| 1202 |
1203 |
| 1203 } |
1204 } |