/[weechat]/weechat/src/irc/irc-display.c
ViewVC logotype

Diff of /weechat/src/irc/irc-display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by flashcode, Mon Jun 27 16:27:31 2005 UTC revision 1.18 by flashcode, Thu Jun 30 12:55:36 2005 UTC
# Line 66  irc_display_prefix (t_gui_buffer *buffer Line 66  irc_display_prefix (t_gui_buffer *buffer
66   */   */
67    
68  void  void
69  irc_display_nick (t_gui_buffer *buffer, t_irc_nick *nick, int message_type,  irc_display_nick (t_gui_buffer *buffer, t_irc_nick *nick, char *nickname,
70                    int display_around, int color_nick, int no_nickmode)                    int message_type, int display_around, int color_nick, int no_nickmode)
71  {  {
72      if (display_around)      if (display_around)
73          gui_printf_type_color (buffer,          gui_printf_type_color (buffer,
74                                 message_type, COLOR_WIN_CHAT_DARK, "<");                                 message_type, COLOR_WIN_CHAT_DARK,
75      if (cfg_look_nickmode)                                 (nick) ? "<" : ">");
76        if (nick && cfg_look_nickmode)
77      {      {
78          if (nick->is_chanowner)          if (nick->is_chanowner)
79              gui_printf_type_color (buffer,              gui_printf_type_color (buffer,
# Line 104  irc_display_nick (t_gui_buffer *buffer, Line 105  irc_display_nick (t_gui_buffer *buffer,
105          gui_printf_type_color (buffer,          gui_printf_type_color (buffer,
106                                 message_type,                                 message_type,
107                                 COLOR_WIN_CHAT_HIGHLIGHT,                                 COLOR_WIN_CHAT_HIGHLIGHT,
108                                 "%s", nick->nick);                                 "%s", (nick) ? nick->nick : nickname);
109      else      else
110          gui_printf_type_color (buffer,          gui_printf_type_color (buffer,
111                                 message_type,                                 message_type,
112                                 (color_nick) ?                                 (nick && color_nick) ?
113                                     ((cfg_look_color_nicks) ?                                     ((cfg_look_color_nicks) ?
114                                     nick->color : COLOR_WIN_CHAT) :                                     nick->color : COLOR_WIN_CHAT) :
115                                     COLOR_WIN_CHAT,                                     COLOR_WIN_CHAT,
116                                 "%s", nick->nick);                                 "%s", (nick) ? nick->nick : nickname);
117            
118      if (display_around)      if (display_around)
119          gui_printf_type_color (buffer,          gui_printf_type_color (buffer,
120                                 message_type, COLOR_WIN_CHAT_DARK, "> ");                                 message_type, COLOR_WIN_CHAT_DARK,
121                                   (nick) ? "> " : "< ");
122  }  }
123    
124  /*  /*

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26