summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-08 19:04:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-08 19:04:05 +0200
commit5d07aa14ed58bb7ba3a4566955d471861488f056 (patch)
tree59528af01029f965139a81bbf07bcd33007abbb6 /src/gui/curses
parent0e053e072b9eb8755e0bd9418d18a58e4ae8f96d (diff)
downloadweechat-5d07aa14ed58bb7ba3a4566955d471861488f056.zip
Add function to get plugin name (return "core" for WeeChat core)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-status.c b/src/gui/curses/gui-curses-status.c
index fe2042270..ad9bfde11 100644
--- a/src/gui/curses/gui-curses-status.c
+++ b/src/gui/curses/gui-curses-status.c
@@ -81,8 +81,7 @@ gui_status_draw (int erase)
gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_status,
GUI_COLOR_STATUS);
wprintw (GUI_CURSES(ptr_win)->win_status, "%s",
- (ptr_win->buffer->plugin) ?
- ptr_win->buffer->plugin->name : "core");
+ plugin_get_name (ptr_win->buffer->plugin));
gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_status,
GUI_COLOR_STATUS_DELIMITERS);
wprintw (GUI_CURSES(ptr_win)->win_status, "] ");