Removed color encoding in commands (only allowed in text sent to channel/private)

This commit is contained in:
Sebastien Helleu 2006-04-10 15:53:14 +00:00
parent 58a1fc72db
commit d6459aa638
4 changed files with 8 additions and 42 deletions

View File

@ -1,9 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat WeeChat - Wee Enhanced Environment for Chat
=========================================== ===========================================
ChangeLog - 2006-04-08 ChangeLog - 2006-04-10
Version 0.1.9 (under dev!): Version 0.1.9 (under dev!):
* removed color encoding in commands (only allowed in text sent to
channel/private)
* added hostnames associeted to nicks (available for /ban completion) * added hostnames associeted to nicks (available for /ban completion)
* added "+p" mode for channels, fixed mode display in status bar * added "+p" mode for channels, fixed mode display in status bar
* added nick alignment options * added nick alignment options

View File

@ -666,7 +666,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
int only_builtin) int only_builtin)
{ {
int i, rc, argc, return_code, length1, length2; int i, rc, argc, return_code, length1, length2;
char *command, *pos, *ptr_args, *ptr_args_color, **argv, *alias_command; char *command, *pos, *ptr_args, **argv, *alias_command;
char **commands, **ptr_cmd, **ptr_next_cmd; char **commands, **ptr_cmd, **ptr_next_cmd;
t_weechat_alias *ptr_alias; t_weechat_alias *ptr_alias;
@ -698,15 +698,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
ptr_args = NULL; ptr_args = NULL;
} }
ptr_args_color = NULL;
if (ptr_args && (cfg_irc_colors_send))
{
ptr_args_color = (char *)gui_color_encode ((unsigned char *)ptr_args);
if (ptr_args_color)
ptr_args = ptr_args_color;
}
#ifdef PLUGINS #ifdef PLUGINS
if (only_builtin) if (only_builtin)
rc = -1; rc = -1;
@ -802,8 +793,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -862,8 +851,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
} }
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -913,8 +900,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
_("%s command \"%s\" needs a server connection!\n"), _("%s command \"%s\" needs a server connection!\n"),
WEECHAT_ERROR, irc_commands[i].command_name); WEECHAT_ERROR, irc_commands[i].command_name);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 0; return 0;
} }
if (irc_commands[i].cmd_function_args) if (irc_commands[i].cmd_function_args)
@ -933,8 +918,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
} }
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -946,8 +929,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
free_exploded_string (argv); free_exploded_string (argv);
} }
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 0; return 0;
} }

View File

@ -1,9 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat WeeChat - Wee Enhanced Environment for Chat
=========================================== ===========================================
ChangeLog - 2006-04-08 ChangeLog - 2006-04-10
Version 0.1.9 (under dev!): Version 0.1.9 (under dev!):
* removed color encoding in commands (only allowed in text sent to
channel/private)
* added hostnames associeted to nicks (available for /ban completion) * added hostnames associeted to nicks (available for /ban completion)
* added "+p" mode for channels, fixed mode display in status bar * added "+p" mode for channels, fixed mode display in status bar
* added nick alignment options * added nick alignment options

View File

@ -666,7 +666,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
int only_builtin) int only_builtin)
{ {
int i, rc, argc, return_code, length1, length2; int i, rc, argc, return_code, length1, length2;
char *command, *pos, *ptr_args, *ptr_args_color, **argv, *alias_command; char *command, *pos, *ptr_args, **argv, *alias_command;
char **commands, **ptr_cmd, **ptr_next_cmd; char **commands, **ptr_cmd, **ptr_next_cmd;
t_weechat_alias *ptr_alias; t_weechat_alias *ptr_alias;
@ -698,15 +698,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
ptr_args = NULL; ptr_args = NULL;
} }
ptr_args_color = NULL;
if (ptr_args && (cfg_irc_colors_send))
{
ptr_args_color = (char *)gui_color_encode ((unsigned char *)ptr_args);
if (ptr_args_color)
ptr_args = ptr_args_color;
}
#ifdef PLUGINS #ifdef PLUGINS
if (only_builtin) if (only_builtin)
rc = -1; rc = -1;
@ -802,8 +793,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -862,8 +851,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
} }
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -913,8 +900,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
_("%s command \"%s\" needs a server connection!\n"), _("%s command \"%s\" needs a server connection!\n"),
WEECHAT_ERROR, irc_commands[i].command_name); WEECHAT_ERROR, irc_commands[i].command_name);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 0; return 0;
} }
if (irc_commands[i].cmd_function_args) if (irc_commands[i].cmd_function_args)
@ -933,8 +918,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
} }
free_exploded_string (argv); free_exploded_string (argv);
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 1; return 1;
} }
} }
@ -946,8 +929,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
free_exploded_string (argv); free_exploded_string (argv);
} }
free (command); free (command);
if (ptr_args_color)
free (ptr_args_color);
return 0; return 0;
} }