summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/command.c2
-rw-r--r--src/config.c23
-rw-r--r--weechat/src/command.c2
-rw-r--r--weechat/src/config.c23
4 files changed, 26 insertions, 24 deletions
diff --git a/src/command.c b/src/command.c
index 53d5564c4..692b8e1af 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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)
diff --git a/src/config.c b/src/config.c
index 161d422cf..a570488bd 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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);
diff --git a/weechat/src/command.c b/weechat/src/command.c
index 53d5564c4..692b8e1af 100644
--- a/weechat/src/command.c
+++ b/weechat/src/command.c
@@ -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)
diff --git a/weechat/src/config.c b/weechat/src/config.c
index 161d422cf..a570488bd 100644
--- a/weechat/src/config.c
+++ b/weechat/src/config.c
@@ -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);