mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
Added support for bahamut @+#channel notices. Removed notice_public_ops
format, notice_public is just fine if the channel just contains @ or @+ at the beginning. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1538 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f079263035
commit
3609f6f243
6 changed files with 51 additions and 33 deletions
|
|
@ -71,7 +71,13 @@ static int isnickflag_func(char flag)
|
|||
|
||||
static int ischannel_func(const char *data)
|
||||
{
|
||||
return ischannel_target(data);
|
||||
if (*data == '@') {
|
||||
/* @#channel, @+#channel */
|
||||
data++;
|
||||
if (*data == '+' && ischannel(data[1]))
|
||||
return 1;
|
||||
}
|
||||
return ischannel(*data);
|
||||
}
|
||||
|
||||
static void send_message(SERVER_REC *server, const char *target,
|
||||
|
|
|
|||
|
|
@ -25,10 +25,6 @@
|
|||
(a) == '!' || /* secure */ \
|
||||
(a) == '+') /* modeless */
|
||||
|
||||
#define ischannel_target(a) \
|
||||
(ischannel((a)[0]) || \
|
||||
((a)[0] == '@' && ischannel((a)[1]))) /* hybrid6 @#channel */
|
||||
|
||||
#define IS_IRC_ITEM(rec) (IS_IRC_CHANNEL(rec) || IS_IRC_QUERY(rec))
|
||||
|
||||
extern char *current_server_event; /* current server event being processed */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue