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

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

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

revision 1.1 by flashcode, Sun Sep 4 12:55:25 2005 UTC revision 1.2 by flashcode, Sun Oct 30 09:56:24 2005 UTC
# Line 191  ignore_add (char *mask, char *type, char Line 191  ignore_add (char *mask, char *type, char
191      if (!mask || !mask[0] || !type || !type[0] || !channel_name || !channel_name[0]      if (!mask || !mask[0] || !type || !type[0] || !channel_name || !channel_name[0]
192          || !server_name || !server_name[0])          || !server_name || !server_name[0])
193      {      {
194            irc_display_prefix (NULL, NULL, PREFIX_ERROR);
195          gui_printf (NULL,          gui_printf (NULL,
196                      _("%s too few arguments for ignore\n"),                      _("%s too few arguments for ignore\n"),
197                      WEECHAT_ERROR);                      WEECHAT_ERROR);
# Line 207  ignore_add (char *mask, char *type, char Line 208  ignore_add (char *mask, char *type, char
208            
209      if ((strcmp (mask, "*") == 0) && (strcmp (type, "*") == 0))      if ((strcmp (mask, "*") == 0) && (strcmp (type, "*") == 0))
210      {      {
211          irc_display_prefix (NULL, PREFIX_ERROR);          irc_display_prefix (NULL, NULL, PREFIX_ERROR);
212          gui_printf (NULL,          gui_printf (NULL,
213                      _("%s mask or type/command should be non generic value for ignore\n"),                      _("%s mask or type/command should be non generic value for ignore\n"),
214                      WEECHAT_ERROR);                      WEECHAT_ERROR);
# Line 216  ignore_add (char *mask, char *type, char Line 217  ignore_add (char *mask, char *type, char
217            
218      if (ignore_search (mask, type, channel_name, server_name))      if (ignore_search (mask, type, channel_name, server_name))
219      {      {
220          irc_display_prefix (NULL, PREFIX_ERROR);          irc_display_prefix (NULL, NULL, PREFIX_ERROR);
221          gui_printf (NULL,          gui_printf (NULL,
222                      _("%s ignore already exists\n"),                      _("%s ignore already exists\n"),
223                      WEECHAT_ERROR);                      WEECHAT_ERROR);
# Line 252  ignore_add (char *mask, char *type, char Line 253  ignore_add (char *mask, char *type, char
253          /* not a pre-defined command and not an IRC command => error */          /* not a pre-defined command and not an IRC command => error */
254          if ((type_index < 0) && (!command_ptr))          if ((type_index < 0) && (!command_ptr))
255          {          {
256              irc_display_prefix (NULL, PREFIX_ERROR);              irc_display_prefix (NULL, NULL, PREFIX_ERROR);
257              gui_printf (NULL,              gui_printf (NULL,
258                          _("%s unknown type or IRC command \"%s\" for ignore\n"),                          _("%s unknown type or IRC command \"%s\" for ignore\n"),
259                          WEECHAT_ERROR, type);                          WEECHAT_ERROR, type);
# Line 280  ignore_add (char *mask, char *type, char Line 281  ignore_add (char *mask, char *type, char
281      }      }
282      else      else
283      {      {
284          irc_display_prefix (NULL, PREFIX_ERROR);          irc_display_prefix (NULL, NULL, PREFIX_ERROR);
285          gui_printf (NULL,          gui_printf (NULL,
286                      _("%s not enough memory to create ignore\n"),                      _("%s not enough memory to create ignore\n"),
287                      WEECHAT_ERROR);                      WEECHAT_ERROR);
# Line 402  ignore_search_free (char *mask, char *ty Line 403  ignore_search_free (char *mask, char *ty
403              found++;              found++;
404              if (found == 1)              if (found == 1)
405                  gui_printf (NULL, "\n");                  gui_printf (NULL, "\n");
406              irc_display_prefix (NULL, PREFIX_INFO);              irc_display_prefix (NULL, NULL, PREFIX_INFO);
407              weechat_cmd_ignore_display (_("Removing ignore:"), ptr_ignore);              weechat_cmd_ignore_display (_("Removing ignore:"), ptr_ignore);
408              next_ignore = ptr_ignore->next_ignore;              next_ignore = ptr_ignore->next_ignore;
409              ignore_free (ptr_ignore);              ignore_free (ptr_ignore);
# Line 438  ignore_search_free_by_number (int number Line 439  ignore_search_free_by_number (int number
439          if (i == number)          if (i == number)
440          {          {
441              gui_printf (NULL, "\n");              gui_printf (NULL, "\n");
442              irc_display_prefix (NULL, PREFIX_INFO);              irc_display_prefix (NULL, NULL, PREFIX_INFO);
443              weechat_cmd_ignore_display (_("Removing ignore:"), ptr_ignore);              weechat_cmd_ignore_display (_("Removing ignore:"), ptr_ignore);
444              ignore_free (ptr_ignore);              ignore_free (ptr_ignore);
445              return 1;              return 1;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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