forked from PsychoticNinja/irssi
/ACTION didn't print the target when there was no query/channel where
to print the action git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1188 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
70322d695f
commit
45ad955d9e
@ -166,12 +166,18 @@ abstracts = {
|
|||||||
## Actions (/ME stuff)
|
## Actions (/ME stuff)
|
||||||
##
|
##
|
||||||
|
|
||||||
|
# used internally by this theme
|
||||||
|
action_core = "%W * $0-%n";
|
||||||
|
|
||||||
# generic one that's used by most actions
|
# generic one that's used by most actions
|
||||||
action = "%W * $0-%n ";
|
action = "{action_core $0-} ";
|
||||||
|
|
||||||
# own action, both private/public
|
# own action, both private/public
|
||||||
ownaction = "{action $0-}";
|
ownaction = "{action $0-}";
|
||||||
|
|
||||||
|
# own action with target, both private/public
|
||||||
|
ownaction_target = "{action_core $0}%K:%c$1%n ";
|
||||||
|
|
||||||
# private action sent by others
|
# private action sent by others
|
||||||
pvtaction = "%W (*) $0-%n ";
|
pvtaction = "%W (*) $0-%n ";
|
||||||
pvtaction_query = "{action $0-}";
|
pvtaction_query = "{action $0-}";
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "irc.h"
|
#include "irc.h"
|
||||||
#include "irc-channels.h"
|
#include "irc-channels.h"
|
||||||
|
#include "irc-queries.h"
|
||||||
|
|
||||||
#include "../core/module-formats.h"
|
#include "../core/module-formats.h"
|
||||||
#include "module-formats.h"
|
#include "module-formats.h"
|
||||||
@ -93,10 +94,18 @@ static void sig_message_own_wall(SERVER_REC *server, const char *msg,
|
|||||||
static void sig_message_own_action(IRC_SERVER_REC *server, const char *msg,
|
static void sig_message_own_action(IRC_SERVER_REC *server, const char *msg,
|
||||||
const char *target)
|
const char *target)
|
||||||
{
|
{
|
||||||
printformat(server, target, MSGLEVEL_ACTIONS |
|
void *item;
|
||||||
(ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS) |
|
|
||||||
MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT,
|
if (ischannel(*target))
|
||||||
IRCTXT_OWN_ME, server->nick, msg);
|
item = irc_channel_find(server, target);
|
||||||
|
else
|
||||||
|
item = irc_query_find(server, target);
|
||||||
|
|
||||||
|
printformat(server, target,
|
||||||
|
MSGLEVEL_ACTIONS | MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT |
|
||||||
|
(ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS),
|
||||||
|
item != NULL ? IRCTXT_OWN_ACTION : IRCTXT_OWN_ACTION_TARGET,
|
||||||
|
server->nick, msg, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
|
static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
|
||||||
|
@ -113,7 +113,8 @@ FORMAT_REC fecommon_irc_formats[] = {
|
|||||||
{ NULL, "Your messages", 0 },
|
{ NULL, "Your messages", 0 },
|
||||||
|
|
||||||
{ "own_notice", "{ownnotice notice $0}$1", 2, { 0, 0 } },
|
{ "own_notice", "{ownnotice notice $0}$1", 2, { 0, 0 } },
|
||||||
{ "own_action", "{ownaction $0}$1", 2, { 0, 0 } },
|
{ "own_action", "{ownaction $0}$1", 3, { 0, 0, 0 } },
|
||||||
|
{ "own_action_target", "{ownaction_target $0 $2}$1", 3, { 0, 0, 0 } },
|
||||||
{ "own_ctcp", "{ownctcp ctcp $0}$1 $2", 3, { 0, 0, 0 } },
|
{ "own_ctcp", "{ownctcp ctcp $0}$1 $2", 3, { 0, 0, 0 } },
|
||||||
|
|
||||||
/* ---- */
|
/* ---- */
|
||||||
|
@ -87,7 +87,8 @@ enum {
|
|||||||
IRCTXT_FILL_6,
|
IRCTXT_FILL_6,
|
||||||
|
|
||||||
IRCTXT_OWN_NOTICE,
|
IRCTXT_OWN_NOTICE,
|
||||||
IRCTXT_OWN_ME,
|
IRCTXT_OWN_ACTION,
|
||||||
|
IRCTXT_OWN_ACTION_TARGET,
|
||||||
IRCTXT_OWN_CTCP,
|
IRCTXT_OWN_CTCP,
|
||||||
|
|
||||||
IRCTXT_FILL_7,
|
IRCTXT_FILL_7,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user