mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
Added target_type to send_message(), -channel and -nick parameters to /MSG
to specify if it's supposed to be to channel/nick. /MSG -channel is used automatically by irssi when sending messages to channel (the "normal" way without /msg). This should help with protocols that don't have any channel name prefixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2383 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6ea882f893
commit
7c94cb083f
7 changed files with 74 additions and 41 deletions
|
|
@ -161,9 +161,8 @@ int ignore_check(SERVER_REC *server, const char *nick, const char *host,
|
|||
g_return_val_if_fail(server != NULL, 0);
|
||||
if (nick == NULL) nick = "";
|
||||
|
||||
chanrec = (channel != NULL && server != NULL &&
|
||||
server_ischannel(server, channel)) ?
|
||||
channel_find(server, channel) : NULL;
|
||||
chanrec = server == NULL || channel == NULL ? NULL :
|
||||
channel_find(server, channel);
|
||||
if (chanrec != NULL && nick != NULL &&
|
||||
(nickrec = nicklist_find(chanrec, nick)) != NULL) {
|
||||
/* nick found - check only ignores in nickmatch cache */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue