summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/plugins-interface.c3
-rw-r--r--src/plugins/weechat-plugin.h17
-rw-r--r--weechat/src/plugins/plugins-interface.c3
-rw-r--r--weechat/src/plugins/weechat-plugin.h17
4 files changed, 38 insertions, 2 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c
index 9120f7ee3..e80a1d870 100644
--- a/src/plugins/plugins-interface.c
+++ b/src/plugins/plugins-interface.c
@@ -482,7 +482,8 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server)
}
else if (ascii_strcasecmp (info, "channel") == 0)
{
- if (BUFFER_IS_CHANNEL(gui_current_window->buffer))
+ if (BUFFER_IS_CHANNEL(gui_current_window->buffer)
+ || BUFFER_IS_PRIVATE(gui_current_window->buffer))
return strdup (CHANNEL(gui_current_window->buffer)->name);
}
else if (ascii_strcasecmp (info, "server") == 0)
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index c0c70995d..b308636bd 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -36,6 +36,23 @@
| PLUGIN_RC_OK_IGNORE_PLUGINS)
/* ignore WeeChat and other plugins */
+#define WEECHAT_IRC_COLOR_WHITE 0
+#define WEECHAT_IRC_COLOR_BLACK 1
+#define WEECHAT_IRC_COLOR_BLUE 2
+#define WEECHAT_IRC_COLOR_GREEN 3
+#define WEECHAT_IRC_COLOR_LIGHTRED 4
+#define WEECHAT_IRC_COLOR_RED 5
+#define WEECHAT_IRC_COLOR_MAGENTA 6
+#define WEECHAT_IRC_COLOR_BROWN 7
+#define WEECHAT_IRC_COLOR_YELLOW 8
+#define WEECHAT_IRC_COLOR_LIGHTGREEN 9
+#define WEECHAT_IRC_COLOR_CYAN 10
+#define WEECHAT_IRC_COLOR_LIGHTCYAN 11
+#define WEECHAT_IRC_COLOR_LIGHTBLUE 12
+#define WEECHAT_IRC_COLOR_LIGHTMAGENTA 13
+#define WEECHAT_IRC_COLOR_GRAY 14
+#define WEECHAT_IRC_COLOR_LIGHTGRAY 15
+
typedef struct t_plugin_dcc_info t_plugin_dcc_info;
struct t_plugin_dcc_info
diff --git a/weechat/src/plugins/plugins-interface.c b/weechat/src/plugins/plugins-interface.c
index 9120f7ee3..e80a1d870 100644
--- a/weechat/src/plugins/plugins-interface.c
+++ b/weechat/src/plugins/plugins-interface.c
@@ -482,7 +482,8 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server)
}
else if (ascii_strcasecmp (info, "channel") == 0)
{
- if (BUFFER_IS_CHANNEL(gui_current_window->buffer))
+ if (BUFFER_IS_CHANNEL(gui_current_window->buffer)
+ || BUFFER_IS_PRIVATE(gui_current_window->buffer))
return strdup (CHANNEL(gui_current_window->buffer)->name);
}
else if (ascii_strcasecmp (info, "server") == 0)
diff --git a/weechat/src/plugins/weechat-plugin.h b/weechat/src/plugins/weechat-plugin.h
index c0c70995d..b308636bd 100644
--- a/weechat/src/plugins/weechat-plugin.h
+++ b/weechat/src/plugins/weechat-plugin.h
@@ -36,6 +36,23 @@
| PLUGIN_RC_OK_IGNORE_PLUGINS)
/* ignore WeeChat and other plugins */
+#define WEECHAT_IRC_COLOR_WHITE 0
+#define WEECHAT_IRC_COLOR_BLACK 1
+#define WEECHAT_IRC_COLOR_BLUE 2
+#define WEECHAT_IRC_COLOR_GREEN 3
+#define WEECHAT_IRC_COLOR_LIGHTRED 4
+#define WEECHAT_IRC_COLOR_RED 5
+#define WEECHAT_IRC_COLOR_MAGENTA 6
+#define WEECHAT_IRC_COLOR_BROWN 7
+#define WEECHAT_IRC_COLOR_YELLOW 8
+#define WEECHAT_IRC_COLOR_LIGHTGREEN 9
+#define WEECHAT_IRC_COLOR_CYAN 10
+#define WEECHAT_IRC_COLOR_LIGHTCYAN 11
+#define WEECHAT_IRC_COLOR_LIGHTBLUE 12
+#define WEECHAT_IRC_COLOR_LIGHTMAGENTA 13
+#define WEECHAT_IRC_COLOR_GRAY 14
+#define WEECHAT_IRC_COLOR_LIGHTGRAY 15
+
typedef struct t_plugin_dcc_info t_plugin_dcc_info;
struct t_plugin_dcc_info