summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gtk/gui-gtk-input.c')
-rw-r--r--src/gui/gtk/gui-gtk-input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/gtk/gui-gtk-input.c b/src/gui/gtk/gui-gtk-input.c
index 67345ca1f..30c7c9318 100644
--- a/src/gui/gtk/gui-gtk-input.c
+++ b/src/gui/gtk/gui-gtk-input.c
@@ -71,20 +71,20 @@ gui_input_get_prompt_length (t_gui_window *window, char *nick)
switch (pos[0])
{
case 'c':
- if (CHANNEL(window->buffer))
- length += utf8_strlen (CHANNEL(window->buffer)->name);
+ if (GUI_CHANNEL(window->buffer))
+ length += utf8_strlen (GUI_CHANNEL(window->buffer)->name);
else
{
- if (SERVER(window->buffer))
- length += utf8_strlen (SERVER(window->buffer)->name);
+ if (GUI_SERVER(window->buffer))
+ length += utf8_strlen (GUI_SERVER(window->buffer)->name);
}
pos++;
break;
case 'm':
- if (SERVER(window->buffer))
+ if (GUI_SERVER(window->buffer))
{
mode_found = 0;
- for (modes = SERVER(window->buffer)->nick_modes;
+ for (modes = GUI_SERVER(window->buffer)->nick_modes;
modes && modes[0]; modes++)
{
if (modes[0] != ' ')