diff options
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc.c | 8 | ||||
-rw-r--r-- | src/fe-common/irc/dcc/module-formats.c | 2 | ||||
-rw-r--r-- | src/fe-common/irc/dcc/module-formats.h | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index d798b0a3..b89e44b9 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -19,7 +19,7 @@ */ #include "module.h" -#include "module-formats.h" +#include "./module-formats.h" #include "signals.h" #include "commands.h" #include "network.h" @@ -303,7 +303,7 @@ static void dcc_chat_out_me(gchar *data, SERVER_REC *server, WI_IRC_REC *item) if (dcc == NULL) return; printformat(NULL, item->name, MSGLEVEL_DCC, - IRCTXT_OWN_ME, dcc->mynick, data); + IRCTXT_OWN_DCC_ME, dcc->mynick, data); } static void dcc_chat_out_action(const char *data, SERVER_REC *server, WI_IRC_REC *item) @@ -327,7 +327,7 @@ static void dcc_chat_out_action(const char *data, SERVER_REC *server, WI_IRC_REC IRCTXT_DCC_CHAT_NOT_FOUND, target+1); } else { printformat(NULL, item->name, MSGLEVEL_DCC, - IRCTXT_OWN_ME, dcc->mynick, text); + IRCTXT_OWN_DCC_ME, dcc->mynick, text); } g_free(params); } @@ -355,7 +355,7 @@ static void dcc_chat_out_ctcp(gchar *data, SERVER_REC *server) IRCTXT_DCC_CHAT_NOT_FOUND, target+1); } else { g_strup(ctcpcmd); - printformat(server, target, MSGLEVEL_DCC, IRCTXT_OWN_CTCP, + printformat(server, target, MSGLEVEL_DCC, IRCTXT_OWN_DCC_CTCP, target, ctcpcmd, ctcpdata); } diff --git a/src/fe-common/irc/dcc/module-formats.c b/src/fe-common/irc/dcc/module-formats.c index d26fbf49..27f74f65 100644 --- a/src/fe-common/irc/dcc/module-formats.c +++ b/src/fe-common/irc/dcc/module-formats.c @@ -29,6 +29,8 @@ FORMAT_REC fecommon_irc_dcc_formats[] = { NULL, N_("DCC"), 0 }, { "own_dcc", N_("%K[%rdcc%K(%R$0%K)]%n $1"), 2, { 0, 0 } }, + { "own_dcc_me", N_("%W * $0%n $1"), 2, { 0, 0 } }, + { "own_dcc_ctcp", N_("%K[%rctcp%K(%R$0%K)]%n $1 $2"), 3, { 0, 0, 0 } }, { "dcc_msg", N_("%K[%G$0%K(%gdcc%K)]%n $1"), 2, { 0, 0 } }, { "action_dcc", N_("%W (*dcc*) $0%n $1"), 2, { 0, 0 } }, { "dcc_ctcp", N_("%g>>> DCC CTCP received from %_$0%_%K: %g$1"), 2, { 0, 0 } }, diff --git a/src/fe-common/irc/dcc/module-formats.h b/src/fe-common/irc/dcc/module-formats.h index ef0459db..40d6f090 100644 --- a/src/fe-common/irc/dcc/module-formats.h +++ b/src/fe-common/irc/dcc/module-formats.h @@ -7,6 +7,8 @@ enum { IRCTXT_OWN_DCC, IRCTXT_DCC_MSG, + IRCTXT_OWN_DCC_ME, + IRCTXT_OWN_DCC_CTCP, IRCTXT_ACTION_DCC, IRCTXT_DCC_CTCP, IRCTXT_DCC_CHAT, |