summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-04-10 15:53:14 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-04-10 15:53:14 +0000
commitd6459aa638078f5e934a17dcecc4693226f7ee9f (patch)
treee4ac3796a7e7f0cee47f0cd17eb766ab6dcd26d7 /src
parent58a1fc72db52fc966d28c908f2c8d3054d565c58 (diff)
downloadweechat-d6459aa638078f5e934a17dcecc4693226f7ee9f.zip
Removed color encoding in commands (only allowed in text sent to channel/private)
Diffstat (limited to 'src')
-rw-r--r--src/common/command.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/common/command.c b/src/common/command.c
index 2da161b58..ecf378aa4 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -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;
}