/[weechat]/weechat/src/common/command.c
ViewVC logotype

Diff of /weechat/src/common/command.c

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

revision 1.76 by flashcode, Fri Nov 4 20:13:26 2005 UTC revision 1.77 by flashcode, Fri Nov 4 22:53:10 2005 UTC
# Line 1055  weechat_cmd_buffer (int argc, char **arg Line 1055  weechat_cmd_buffer (int argc, char **arg
1055          }          }
1056          else if (ascii_strcasecmp (argv[0], "notify") == 0)          else if (ascii_strcasecmp (argv[0], "notify") == 0)
1057          {          {
             /* set notify level for buffer */  
               
1058              if (argc < 2)              if (argc < 2)
1059              {              {
1060                  /* display notify level for all buffers */                  /* display notify level for all buffers */
# Line 1081  weechat_cmd_buffer (int argc, char **arg Line 1079  weechat_cmd_buffer (int argc, char **arg
1079              }              }
1080              else              else
1081              {              {
1082                    /* set notify level for buffer */
1083                  error = NULL;                  error = NULL;
1084                  number = strtol (argv[1], &error, 10);                  number = strtol (argv[1], &error, 10);
1085                  if ((error) && (error[0] == '\0'))                  if ((error) && (error[0] == '\0'))
# Line 1106  weechat_cmd_buffer (int argc, char **arg Line 1105  weechat_cmd_buffer (int argc, char **arg
1105                      channel_set_notify_level (SERVER(gui_current_window->buffer),                      channel_set_notify_level (SERVER(gui_current_window->buffer),
1106                                                CHANNEL(gui_current_window->buffer),                                                CHANNEL(gui_current_window->buffer),
1107                                                number);                                                number);
1108                        irc_display_prefix (NULL, NULL, PREFIX_INFO);
1109                        gui_printf (NULL, _("New notify level for %s%s%s: %s%d %s"),
1110                                    GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
1111                                    CHANNEL(gui_current_window->buffer)->name,
1112                                    GUI_COLOR(COLOR_WIN_CHAT),
1113                                    GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
1114                                    number,
1115                                    GUI_COLOR(COLOR_WIN_CHAT));
1116                        switch (number)
1117                        {
1118                            case 0:
1119                                gui_printf (NULL, _("(hotlist: never)\n"));
1120                                break;
1121                            case 1:
1122                                gui_printf (NULL, _("(hotlist: highlights)\n"));
1123                                break;
1124                            case 2:
1125                                gui_printf (NULL, _("(hotlist: highlights + messages)\n"));
1126                                break;
1127                            case 3:
1128                                gui_printf (NULL, _("(hotlist: highlights + messages + join/part (all))\n"));
1129                                break;
1130                            default:
1131                                gui_printf (NULL, "\n");
1132                                break;
1133                        }
1134                  }                  }
1135                  else                  else
1136                  {                  {
# Line 1491  weechat_cmd_ignore_display (char *text, Line 1516  weechat_cmd_ignore_display (char *text,
1516                      GUI_COLOR(COLOR_WIN_CHAT),                      GUI_COLOR(COLOR_WIN_CHAT),
1517                      text);                      text);
1518            
1519      gui_printf (NULL, "%s%s %s%s%s/%s%s%s:%s%s%s%s%s%s%s%s\n",      gui_printf (NULL, _("%son %s%s%s/%s%s%s:%s ignoring %s%s%s from %s%s\n"),
1520                  GUI_COLOR(COLOR_WIN_CHAT),                  GUI_COLOR(COLOR_WIN_CHAT),
                 _("on"),  
1521                  GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),                  GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
1522                  ptr_ignore->server_name,                  ptr_ignore->server_name,
1523                  GUI_COLOR(COLOR_WIN_CHAT_DARK),                  GUI_COLOR(COLOR_WIN_CHAT_DARK),
# Line 1501  weechat_cmd_ignore_display (char *text, Line 1525  weechat_cmd_ignore_display (char *text,
1525                  ptr_ignore->channel_name,                  ptr_ignore->channel_name,
1526                  GUI_COLOR(COLOR_WIN_CHAT_DARK),                  GUI_COLOR(COLOR_WIN_CHAT_DARK),
1527                  GUI_COLOR(COLOR_WIN_CHAT),                  GUI_COLOR(COLOR_WIN_CHAT),
                 _(" ignoring "),  
1528                  GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),                  GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
1529                  ptr_ignore->type,                  ptr_ignore->type,
1530                  GUI_COLOR(COLOR_WIN_CHAT),                  GUI_COLOR(COLOR_WIN_CHAT),
                 _(" from "),  
1531                  GUI_COLOR(COLOR_WIN_CHAT_HOST),                  GUI_COLOR(COLOR_WIN_CHAT_HOST),
1532                  ptr_ignore->mask);                  ptr_ignore->mask);
1533  }  }

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

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