Aliases for missing commands are comments in config file

v2.8-utf8proc
Sebastien Helleu 2003-10-03 20:31:16 +00:00
parent e0fb9723a7
commit 2db87e36b8
4 changed files with 26 additions and 24 deletions

View File

@ -345,7 +345,7 @@ alias_new (char *alias_name, char *alias_command)
if (!index_command_search (alias_command))
{
gui_printf (NULL, _("%s target command \"%s\" does not exist!\n"),
WEECHAT_ERROR, pos);
WEECHAT_ERROR, alias_command);
return NULL;
}
if (pos)

View File

@ -971,7 +971,8 @@ config_create_default ()
}
}
/* default alias */
/* default aliases */
/* TODO: remove comments when missing commands will be ok */
fputs ("\n[alias]\n", file);
fputs ("SAY=msg *\n", file);
fputs ("BYE=quit\n", file);
@ -979,24 +980,24 @@ config_create_default ()
fputs ("SIGNOFF=quit\n", file);
fputs ("C=clear\n", file);
fputs ("CL=clear\n", file);
fputs ("CHAT=dcc chat\n", file);
fputs ("GET=dcc get\n", file);
fputs ("IG=ignore\n", file);
fputs ("# CHAT=dcc chat\n", file);
fputs ("# GET=dcc get\n", file);
fputs ("# IG=ignore\n", file);
fputs ("J=join\n", file);
fputs ("K=kick\n", file);
fputs ("KB=kickban\n", file);
fputs ("KN=knockout\n", file);
fputs ("# KB=kickban\n", file);
fputs ("# KN=knockout\n", file);
fputs ("LEAVE=part\n", file);
fputs ("M=msg\n", file);
fputs ("MUB=unban *\n", file);
fputs ("# MUB=unban *\n", file);
fputs ("N=names\n", file);
fputs ("T=topic\n", file);
fputs ("UB=unban\n", file);
fputs ("UNIG=unignore\n", file);
fputs ("W=who\n", file);
fputs ("# UB=unban\n", file);
fputs ("# UNIG=unignore\n", file);
fputs ("# W=who\n", file);
fputs ("WC=part\n", file);
fputs ("WI=whois\n", file);
fputs ("WW=whowas\n", file);
fputs ("# WW=whowas\n", file);
/* default server is freenode */
fputs ("\n[server]\n", file);

View File

@ -345,7 +345,7 @@ alias_new (char *alias_name, char *alias_command)
if (!index_command_search (alias_command))
{
gui_printf (NULL, _("%s target command \"%s\" does not exist!\n"),
WEECHAT_ERROR, pos);
WEECHAT_ERROR, alias_command);
return NULL;
}
if (pos)

View File

@ -971,7 +971,8 @@ config_create_default ()
}
}
/* default alias */
/* default aliases */
/* TODO: remove comments when missing commands will be ok */
fputs ("\n[alias]\n", file);
fputs ("SAY=msg *\n", file);
fputs ("BYE=quit\n", file);
@ -979,24 +980,24 @@ config_create_default ()
fputs ("SIGNOFF=quit\n", file);
fputs ("C=clear\n", file);
fputs ("CL=clear\n", file);
fputs ("CHAT=dcc chat\n", file);
fputs ("GET=dcc get\n", file);
fputs ("IG=ignore\n", file);
fputs ("# CHAT=dcc chat\n", file);
fputs ("# GET=dcc get\n", file);
fputs ("# IG=ignore\n", file);
fputs ("J=join\n", file);
fputs ("K=kick\n", file);
fputs ("KB=kickban\n", file);
fputs ("KN=knockout\n", file);
fputs ("# KB=kickban\n", file);
fputs ("# KN=knockout\n", file);
fputs ("LEAVE=part\n", file);
fputs ("M=msg\n", file);
fputs ("MUB=unban *\n", file);
fputs ("# MUB=unban *\n", file);
fputs ("N=names\n", file);
fputs ("T=topic\n", file);
fputs ("UB=unban\n", file);
fputs ("UNIG=unignore\n", file);
fputs ("W=who\n", file);
fputs ("# UB=unban\n", file);
fputs ("# UNIG=unignore\n", file);
fputs ("# W=who\n", file);
fputs ("WC=part\n", file);
fputs ("WI=whois\n", file);
fputs ("WW=whowas\n", file);
fputs ("# WW=whowas\n", file);
/* default server is freenode */
fputs ("\n[server]\n", file);