Removed color encoding in commands (only allowed in text sent to channel/private)
This commit is contained in:
parent
58a1fc72db
commit
d6459aa638
@ -1,9 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-04-08
|
||||
ChangeLog - 2006-04-10
|
||||
|
||||
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 "+p" mode for channels, fixed mode display in status bar
|
||||
* added nick alignment options
|
||||
|
@ -666,7 +666,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
int only_builtin)
|
||||
{
|
||||
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;
|
||||
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_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
|
||||
if (only_builtin)
|
||||
rc = -1;
|
||||
@ -802,8 +793,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
|
||||
free_exploded_string (argv);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -862,8 +851,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
}
|
||||
free_exploded_string (argv);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
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"),
|
||||
WEECHAT_ERROR, irc_commands[i].command_name);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 0;
|
||||
}
|
||||
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 (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -946,8 +929,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
free_exploded_string (argv);
|
||||
}
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-04-08
|
||||
ChangeLog - 2006-04-10
|
||||
|
||||
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 "+p" mode for channels, fixed mode display in status bar
|
||||
* added nick alignment options
|
||||
|
@ -666,7 +666,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
int only_builtin)
|
||||
{
|
||||
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;
|
||||
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_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
|
||||
if (only_builtin)
|
||||
rc = -1;
|
||||
@ -802,8 +793,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
|
||||
free_exploded_string (argv);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -862,8 +851,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
}
|
||||
free_exploded_string (argv);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
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"),
|
||||
WEECHAT_ERROR, irc_commands[i].command_name);
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 0;
|
||||
}
|
||||
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 (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -946,8 +929,6 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
|
||||
free_exploded_string (argv);
|
||||
}
|
||||
free (command);
|
||||
if (ptr_args_color)
|
||||
free (ptr_args_color);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user