Changeset 22ec21d
- Timestamp:
- 2013-08-02T11:52:22Z (11 years ago)
- Branches:
- master
- Children:
- fa9478e
- Parents:
- 6d9f0ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r6d9f0ba r22ec21d 150 150 void yes_forget_key(void *data); 151 151 152 /* timeout handler that calls otrl_message_poll */ 153 gboolean ev_message_poll(gpointer data, gint fd, b_input_condition cond); 154 152 155 /* helper to make sure accountname and protocol match the incoming "opdata" */ 153 156 struct im_connection *check_imc(void *opdata, const char *accountname, … … 241 244 otr_ops.convert_msg = &op_convert_msg; 242 245 otr_ops.convert_free = &op_convert_free; 243 otr_ops.timer_control = NULL; // XXX call otrl_message_poll reg'ly246 otr_ops.timer_control = NULL; /* we just poll */ 244 247 245 248 root_command_add( "otr", 1, cmd_otr, 0 ); … … 266 269 s = set_add( &irc->b->set, "otr_does_html", "true", set_eval_bool, irc ); 267 270 271 /* regularly call otrl_message_poll */ 272 gint definterval = otrl_message_poll_get_default_interval(irc->otr->us); 273 b_timeout_add(definterval, ev_message_poll, irc->otr); 274 268 275 return TRUE; 269 276 } … … 1346 1353 } 1347 1354 1355 /* timeout handler that calls otrl_message_poll */ 1356 gboolean ev_message_poll(gpointer data, gint fd, b_input_condition cond) 1357 { 1358 otr_t *otr = data; 1359 1360 otrl_message_poll(otr->us, &otr_ops, NULL); 1361 1362 return TRUE; /* cycle timer */ 1363 } 1364 1348 1365 /* helper to assert that account and protocol names given to ops below always 1349 1366 match the im_connection passed through as opdata */
Note: See TracChangeset
for help on using the changeset viewer.