comparison mcabber/src/hooks.c @ 1398:f8321420ed7a

Remove useless inline's
author Mikael Berthe <mikael@lilotux.net>
date Thu, 13 Dec 2007 20:02:40 +0100
parents 7daf906fbcdc
children 366ef500c522
comparison
equal deleted inserted replaced
1397:5f91bac887ee 1398:f8321420ed7a
35 35
36 static char *extcmd; 36 static char *extcmd;
37 37
38 static const char *COMMAND_ME = "/me "; 38 static const char *COMMAND_ME = "/me ";
39 39
40 inline void hk_message_in(const char *bjid, const char *resname, 40 void hk_message_in(const char *bjid, const char *resname,
41 time_t timestamp, const char *msg, const char *type, 41 time_t timestamp, const char *msg, const char *type,
42 guint encrypted) 42 guint encrypted)
43 { 43 {
44 int new_guy = FALSE; 44 int new_guy = FALSE;
45 int is_groupchat = FALSE; // groupchat message 45 int is_groupchat = FALSE; // groupchat message
223 } 223 }
224 224
225 // hk_message_out() 225 // hk_message_out()
226 // nick should be set for private messages in a chat room, and null for 226 // nick should be set for private messages in a chat room, and null for
227 // normal messages. 227 // normal messages.
228 inline void hk_message_out(const char *bjid, const char *nick, 228 void hk_message_out(const char *bjid, const char *nick,
229 time_t timestamp, const char *msg, guint encrypted) 229 time_t timestamp, const char *msg, guint encrypted)
230 { 230 {
231 char *wmsg = NULL, *bmsg = NULL, *mmsg = NULL; 231 char *wmsg = NULL, *bmsg = NULL, *mmsg = NULL;
232 232
233 if (nick) { 233 if (nick) {
261 261
262 g_free(bmsg); 262 g_free(bmsg);
263 g_free(mmsg); 263 g_free(mmsg);
264 } 264 }
265 265
266 inline void hk_statuschange(const char *bjid, const char *resname, gchar prio, 266 void hk_statuschange(const char *bjid, const char *resname, gchar prio,
267 time_t timestamp, enum imstatus status, 267 time_t timestamp, enum imstatus status,
268 const char *status_msg) 268 const char *status_msg)
269 { 269 {
270 int buddy_format; 270 int buddy_format;
271 int st_in_buf; 271 int st_in_buf;
321 hlog_write_status(bjid, timestamp, status, status_msg); 321 hlog_write_status(bjid, timestamp, status, status_msg);
322 // External command 322 // External command
323 hk_ext_cmd(bjid, 'S', imstatus2char[status], NULL); 323 hk_ext_cmd(bjid, 'S', imstatus2char[status], NULL);
324 } 324 }
325 325
326 inline void hk_mystatuschange(time_t timestamp, enum imstatus old_status, 326 void hk_mystatuschange(time_t timestamp, enum imstatus old_status,
327 enum imstatus new_status, const char *msg) 327 enum imstatus new_status, const char *msg)
328 { 328 {
329 scr_LogPrint(LPRINT_LOGNORM, "Your status has been set: [%c>%c] %s", 329 scr_LogPrint(LPRINT_LOGNORM, "Your status has been set: [%c>%c] %s",
330 imstatus2char[old_status], imstatus2char[new_status], 330 imstatus2char[old_status], imstatus2char[new_status],
331 (msg ? msg : "")); 331 (msg ? msg : ""));