mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fixed name clashes with windows.h
This commit is contained in:
parent
253eb453f2
commit
803eacc488
@ -87,7 +87,7 @@ chat_log_chat(const gchar * const login, gchar *other,
|
||||
|
||||
FILE *logp = fopen(dated_log->filename, "a");
|
||||
|
||||
if (direction == IN) {
|
||||
if (direction == PROF_IN_LOG) {
|
||||
if (strncmp(msg, "/me ", 4) == 0) {
|
||||
fprintf(logp, "%s - *%s %s\n", date_fmt, other_copy, msg + 4);
|
||||
} else {
|
||||
|
@ -26,8 +26,8 @@
|
||||
#include <glib.h>
|
||||
|
||||
typedef enum {
|
||||
IN,
|
||||
OUT
|
||||
PROF_IN_LOG,
|
||||
PROF_OUT_LOG
|
||||
} chat_log_direction_t;
|
||||
|
||||
void chat_log_init(void);
|
||||
|
@ -857,7 +857,7 @@ cmd_execute_default(const char * const inp)
|
||||
|
||||
if (prefs_get_chlog()) {
|
||||
const char *jid = jabber_get_jid();
|
||||
chat_log_chat(jid, recipient, inp, OUT, NULL);
|
||||
chat_log_chat(jid, recipient, inp, PROF_OUT_LOG, NULL);
|
||||
}
|
||||
|
||||
win_show_outgoing_msg("me", recipient, inp);
|
||||
@ -1506,7 +1506,7 @@ _cmd_msg(gchar **args, struct cmd_help_t help)
|
||||
|
||||
if (prefs_get_chlog()) {
|
||||
const char *jid = jabber_get_jid();
|
||||
chat_log_chat(jid, usr, msg, OUT, NULL);
|
||||
chat_log_chat(jid, usr, msg, PROF_OUT_LOG, NULL);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
@ -1607,7 +1607,7 @@ _cmd_tiny(gchar **args, struct cmd_help_t help)
|
||||
|
||||
if (prefs_get_chlog()) {
|
||||
const char *jid = jabber_get_jid();
|
||||
chat_log_chat(jid, recipient, tiny, OUT, NULL);
|
||||
chat_log_chat(jid, recipient, tiny, PROF_OUT_LOG, NULL);
|
||||
}
|
||||
|
||||
win_show_outgoing_msg("me", recipient, tiny);
|
||||
|
@ -127,7 +127,7 @@ prof_handle_incoming_message(char *from, char *message, gboolean priv)
|
||||
char *short_from = strtok(from_cpy, "/");
|
||||
const char *jid = jabber_get_jid();
|
||||
|
||||
chat_log_chat(jid, short_from, message, IN, NULL);
|
||||
chat_log_chat(jid, short_from, message, PROF_IN_LOG, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ prof_handle_delayed_message(char *from, char *message, GTimeVal tv_stamp,
|
||||
char *short_from = strtok(from_cpy, "/");
|
||||
const char *jid = jabber_get_jid();
|
||||
|
||||
chat_log_chat(jid, short_from, message, IN, &tv_stamp);
|
||||
chat_log_chat(jid, short_from, message, PROF_IN_LOG, &tv_stamp);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user