mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Correct handling of /NOTICE @#channel, patch by dg
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2948 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fae3ae2bfc
commit
4ed5e9adf6
2 changed files with 4 additions and 5 deletions
|
|
@ -179,7 +179,7 @@ static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
|
|||
static void sig_message_own_notice(IRC_SERVER_REC *server, const char *msg,
|
||||
const char *target)
|
||||
{
|
||||
printformat(server, target, MSGLEVEL_NOTICES |
|
||||
printformat(server, skip_target(target), MSGLEVEL_NOTICES |
|
||||
MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT,
|
||||
IRCTXT_OWN_NOTICE, target, msg);
|
||||
}
|
||||
|
|
@ -190,6 +190,9 @@ static void sig_message_irc_notice(SERVER_REC *server, const char *msg,
|
|||
{
|
||||
const char *oldtarget;
|
||||
|
||||
oldtarget = target;
|
||||
target = skip_target(target);
|
||||
|
||||
if (address == NULL || *address == '\0') {
|
||||
/* notice from server */
|
||||
if (!ignore_check(server, nick, "",
|
||||
|
|
@ -200,9 +203,6 @@ static void sig_message_irc_notice(SERVER_REC *server, const char *msg,
|
|||
return;
|
||||
}
|
||||
|
||||
oldtarget = target;
|
||||
target = skip_target(target);
|
||||
|
||||
if (ignore_check(server, nick, address,
|
||||
ischannel(*target) ? target : NULL,
|
||||
msg, MSGLEVEL_NOTICES))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue