mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
"message own_public" should be printed with channel's visible_name, not
name. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2831 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b152578725
commit
8f00c21b98
@ -227,14 +227,19 @@ static void sig_message_private(SERVER_REC *server, const char *msg,
|
||||
g_free_not_null(freemsg);
|
||||
}
|
||||
|
||||
static void print_own_channel_message(SERVER_REC *server, CHANNEL_REC *channel,
|
||||
const char *target, const char *msg)
|
||||
static void sig_message_own_public(SERVER_REC *server, const char *msg,
|
||||
const char *target)
|
||||
{
|
||||
WINDOW_REC *window;
|
||||
CHANNEL_REC *channel;
|
||||
const char *nickmode;
|
||||
char *freemsg = NULL;
|
||||
int print_channel;
|
||||
|
||||
channel = channel_find(server, target);
|
||||
if (channel != NULL)
|
||||
target = channel->visible_name;
|
||||
|
||||
nickmode = channel_get_nickmode(channel, server->nick);
|
||||
|
||||
window = channel == NULL ? NULL :
|
||||
@ -261,18 +266,6 @@ static void print_own_channel_message(SERVER_REC *server, CHANNEL_REC *channel,
|
||||
g_free_not_null(freemsg);
|
||||
}
|
||||
|
||||
static void sig_message_own_public(SERVER_REC *server, const char *msg,
|
||||
const char *target)
|
||||
{
|
||||
CHANNEL_REC *channel;
|
||||
|
||||
g_return_if_fail(server != NULL);
|
||||
g_return_if_fail(msg != NULL);
|
||||
|
||||
channel = channel_find(server, target);
|
||||
print_own_channel_message(server, channel, target, msg);
|
||||
}
|
||||
|
||||
static void sig_message_own_private(SERVER_REC *server, const char *msg,
|
||||
const char *target, const char *origtarget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user