1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@174 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-04-26 09:19:03 +00:00 committed by cras
parent 94b37a898b
commit 00c2388666
3 changed files with 8 additions and 4 deletions

View File

@ -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);
}

View File

@ -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 } },

View File

@ -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,