1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Added "+p" mode for channels, fixed mode display in status bar

This commit is contained in:
Sebastien Helleu
2006-04-04 17:47:31 +00:00
parent 94face39a6
commit 99d86d64ab
16 changed files with 100 additions and 96 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
#include "../gui/gui.h"
char *channel_modes = "iklmnst";
char *channel_modes = "iklmnstp";
/*
+1 -1
View File
@@ -929,7 +929,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *ptr_channel,
_("removes private channel flag"),
NULL);
CHANNEL_SET_MODE(ptr_channel, (set_flag == '+'),
CHANNEL_MODE_SECRET);
CHANNEL_MODE_PRIVATE);
break;
case 'q':
pos = NULL;
+2 -1
View File
@@ -84,7 +84,7 @@ struct t_irc_nick
#define CHANNEL_TYPE_CHANNEL 0
#define CHANNEL_TYPE_PRIVATE 1
#define NUM_CHANNEL_MODES 7
#define NUM_CHANNEL_MODES 8
#define CHANNEL_MODE_INVITE 0
#define CHANNEL_MODE_KEY 1
#define CHANNEL_MODE_LIMIT 2
@@ -92,6 +92,7 @@ struct t_irc_nick
#define CHANNEL_MODE_NO_MSG_OUT 4
#define CHANNEL_MODE_SECRET 5
#define CHANNEL_MODE_TOPIC 6
#define CHANNEL_MODE_PRIVATE 7
#define CHANNEL_SET_MODE(channel, set, mode) \
if (set) \
channel->modes[mode] = channel_modes[mode]; \