Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 217889
Collapse All | Expand All

(-)mcabber-0.9.6/src/hooks.c (-2 / +13 lines)
Lines 189-195 Link Here
189
  // - We do call hk_ext_cmd() for private messages in a room
189
  // - We do call hk_ext_cmd() for private messages in a room
190
  // - We do call hk_ext_cmd() for messages to the current window
190
  // - We do call hk_ext_cmd() for messages to the current window
191
  if (!active_window && ((is_groupchat && !timestamp) || !is_groupchat))
191
  if (!active_window && ((is_groupchat && !timestamp) || !is_groupchat))
192
    hk_ext_cmd(bjid, (is_groupchat ? 'G' : 'M'), 'R', wmsg);
192
  {  
193
      const char *nick = roster_getname(bjid);
194
      //hk_ext_cmd(bjid, (is_groupchat ? 'G' : 'M'), 'R', wmsg);
195
      // Fix, that send real name from roster to ext-cmd (such osd_cat):
196
      hk_ext_cmd(nick, (is_groupchat ? 'G' : 'M'), 'R', wmsg);
197
  }
193
198
194
  // Display the sender in the log window
199
  // Display the sender in the log window
195
  if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) &&
200
  if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) &&
Lines 272-277 Link Here
272
  enum imstatus oldstat;
277
  enum imstatus oldstat;
273
  char *bn = NULL;
278
  char *bn = NULL;
274
  char *logsmsg;
279
  char *logsmsg;
280
  // Fix, that send real name from roster to ext-cmd (such osd_cat):
281
  const char *nick;
282
275
  const char *rn = (resname ? resname : "");
283
  const char *rn = (resname ? resname : "");
276
284
277
  st_in_buf = settings_opt_get_int("show_status_in_buffer");
285
  st_in_buf = settings_opt_get_int("show_status_in_buffer");
Lines 320-326 Link Here
320
  scr_DrawRoster();
328
  scr_DrawRoster();
321
  hlog_write_status(bjid, timestamp, status, status_msg);
329
  hlog_write_status(bjid, timestamp, status, status_msg);
322
  // External command
330
  // External command
323
  hk_ext_cmd(bjid, 'S', imstatus2char[status], NULL);
331
  // Fix, that send real name from roster to ext-cmd (such osd_cat):
332
  nick = roster_getname(bjid);
333
  //hk_ext_cmd(bjid, 'S', imstatus2char[status], NULL);
334
  hk_ext_cmd(nick, 'S', imstatus2char[status], NULL);
324
}
335
}
325
336
326
void hk_mystatuschange(time_t timestamp, enum imstatus old_status,
337
void hk_mystatuschange(time_t timestamp, enum imstatus old_status,

Return to bug 217889