mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 15:45:42 +02:00
Added parameters for alias and alias section in config file
This commit is contained in:
@@ -5,7 +5,7 @@ ChangeLog - 2003-10-03
|
||||
|
||||
|
||||
Version 0.0.2 (under dev!):
|
||||
* alias for commands (new commands /alias and /unalias)
|
||||
* alias for commands (new commands /alias and /unalias, new section in config file)
|
||||
* config is now saved automatically when quitting WeeChat
|
||||
* added new WeeChat commands: server, connect, disconnect, save
|
||||
* added autoconnect flag for each server in config file
|
||||
|
||||
@@ -27,7 +27,7 @@ v0.0.2:
|
||||
+ "/set" command: allow the user to set the WeeChat variables
|
||||
under WeeChat without editing the config file (colours, time
|
||||
format, etc)
|
||||
- "/alias" and "/unalias" commands
|
||||
# "/alias" and "/unalias" commands
|
||||
- "/highlight" command: highlight a given word when it appears on
|
||||
channels/privates
|
||||
|
||||
|
||||
+93
-56
File diff suppressed because it is too large
Load Diff
@@ -59,9 +59,12 @@ struct t_index_command
|
||||
t_index_command *next_index;
|
||||
};
|
||||
|
||||
extern t_weechat_alias *weechat_alias;
|
||||
extern t_index_command *index_commands;
|
||||
|
||||
extern t_index_command *index_command_new (char *);
|
||||
extern void index_command_build ();
|
||||
extern t_weechat_alias *alias_new (char *, char *);
|
||||
extern int exec_weechat_command (t_irc_server *, char *);
|
||||
extern void user_command (t_irc_server *, char *);
|
||||
extern int weechat_cmd_alias (char *);
|
||||
|
||||
+47
-23
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -32,8 +32,9 @@
|
||||
#define CONFIG_SECTION_LOG 3
|
||||
#define CONFIG_SECTION_DCC 4
|
||||
#define CONFIG_SECTION_PROXY 5
|
||||
#define CONFIG_SECTION_SERVER 6
|
||||
#define CONFIG_NUMBER_SECTIONS 7
|
||||
#define CONFIG_SECTION_ALIAS 6
|
||||
#define CONFIG_SECTION_SERVER 7
|
||||
#define CONFIG_NUMBER_SECTIONS 8
|
||||
|
||||
#define OPTION_TYPE_BOOLEAN 1 /* values: on/off */
|
||||
#define OPTION_TYPE_INT 2 /* values: from min to max */
|
||||
|
||||
@@ -675,7 +675,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
else
|
||||
gui_printf (server->window,
|
||||
_("%s nick not found for \"privmsg\" command\n"),
|
||||
_("%s nick not found for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
server_sendf (server, "PRIVMSG %s :%s\r\n", ptr_channel->name, pos);
|
||||
}
|
||||
@@ -697,7 +697,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
else
|
||||
gui_printf (server->window,
|
||||
_("%s nick not found for \"privmsg\" command\n"),
|
||||
_("%s nick not found for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
}
|
||||
server_sendf (server, "PRIVMSG %s :%s\r\n", arguments, pos);
|
||||
@@ -739,9 +739,12 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_printf (server->window,
|
||||
_("%s wrong number of args for \"privmsg\" command\n"),
|
||||
_("%s wrong argument count for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -239,6 +239,9 @@ main (int argc, char *argv[])
|
||||
/* init log file */
|
||||
wee_init_log ();
|
||||
|
||||
/* build commands index (sorted), for completion */
|
||||
index_command_build ();
|
||||
|
||||
/* read configuration */
|
||||
switch (config_read ())
|
||||
{
|
||||
@@ -256,9 +259,6 @@ main (int argc, char *argv[])
|
||||
/* init gui */
|
||||
gui_init ();
|
||||
|
||||
/* build commands index (sorted), for completion */
|
||||
index_command_build ();
|
||||
|
||||
/* Welcome message - yeah! */
|
||||
if (cfg_look_startup_logo)
|
||||
{
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ ChangeLog - 2003-10-03
|
||||
|
||||
|
||||
Version 0.0.2 (under dev!):
|
||||
* alias for commands (new commands /alias and /unalias)
|
||||
* alias for commands (new commands /alias and /unalias, new section in config file)
|
||||
* config is now saved automatically when quitting WeeChat
|
||||
* added new WeeChat commands: server, connect, disconnect, save
|
||||
* added autoconnect flag for each server in config file
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ v0.0.2:
|
||||
+ "/set" command: allow the user to set the WeeChat variables
|
||||
under WeeChat without editing the config file (colours, time
|
||||
format, etc)
|
||||
- "/alias" and "/unalias" commands
|
||||
# "/alias" and "/unalias" commands
|
||||
- "/highlight" command: highlight a given word when it appears on
|
||||
channels/privates
|
||||
|
||||
|
||||
+93
-56
File diff suppressed because it is too large
Load Diff
@@ -59,9 +59,12 @@ struct t_index_command
|
||||
t_index_command *next_index;
|
||||
};
|
||||
|
||||
extern t_weechat_alias *weechat_alias;
|
||||
extern t_index_command *index_commands;
|
||||
|
||||
extern t_index_command *index_command_new (char *);
|
||||
extern void index_command_build ();
|
||||
extern t_weechat_alias *alias_new (char *, char *);
|
||||
extern int exec_weechat_command (t_irc_server *, char *);
|
||||
extern void user_command (t_irc_server *, char *);
|
||||
extern int weechat_cmd_alias (char *);
|
||||
|
||||
+47
-23
File diff suppressed because it is too large
Load Diff
@@ -32,8 +32,9 @@
|
||||
#define CONFIG_SECTION_LOG 3
|
||||
#define CONFIG_SECTION_DCC 4
|
||||
#define CONFIG_SECTION_PROXY 5
|
||||
#define CONFIG_SECTION_SERVER 6
|
||||
#define CONFIG_NUMBER_SECTIONS 7
|
||||
#define CONFIG_SECTION_ALIAS 6
|
||||
#define CONFIG_SECTION_SERVER 7
|
||||
#define CONFIG_NUMBER_SECTIONS 8
|
||||
|
||||
#define OPTION_TYPE_BOOLEAN 1 /* values: on/off */
|
||||
#define OPTION_TYPE_INT 2 /* values: from min to max */
|
||||
|
||||
@@ -675,7 +675,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
else
|
||||
gui_printf (server->window,
|
||||
_("%s nick not found for \"privmsg\" command\n"),
|
||||
_("%s nick not found for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
server_sendf (server, "PRIVMSG %s :%s\r\n", ptr_channel->name, pos);
|
||||
}
|
||||
@@ -697,7 +697,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
else
|
||||
gui_printf (server->window,
|
||||
_("%s nick not found for \"privmsg\" command\n"),
|
||||
_("%s nick not found for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
}
|
||||
server_sendf (server, "PRIVMSG %s :%s\r\n", arguments, pos);
|
||||
@@ -739,9 +739,12 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_printf (server->window,
|
||||
_("%s wrong number of args for \"privmsg\" command\n"),
|
||||
_("%s wrong argument count for \"msg\" command\n"),
|
||||
WEECHAT_ERROR);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -239,6 +239,9 @@ main (int argc, char *argv[])
|
||||
/* init log file */
|
||||
wee_init_log ();
|
||||
|
||||
/* build commands index (sorted), for completion */
|
||||
index_command_build ();
|
||||
|
||||
/* read configuration */
|
||||
switch (config_read ())
|
||||
{
|
||||
@@ -256,9 +259,6 @@ main (int argc, char *argv[])
|
||||
/* init gui */
|
||||
gui_init ();
|
||||
|
||||
/* build commands index (sorted), for completion */
|
||||
index_command_build ();
|
||||
|
||||
/* Welcome message - yeah! */
|
||||
if (cfg_look_startup_logo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user