19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
*/ |
*/ |
21 |
|
|
|
|
|
22 |
/* irc-send.c: implementation of IRC commands (client to server), |
/* irc-send.c: implementation of IRC commands (client to server), |
23 |
according to RFC 1459,2810,2811,2812 */ |
according to RFC 1459,2810,2811,2812 */ |
24 |
|
|
25 |
|
|
26 |
|
#ifdef HAVE_CONFIG_H |
27 |
|
#include "config.h" |
28 |
|
#endif |
29 |
|
|
30 |
#include <stdlib.h> |
#include <stdlib.h> |
31 |
#include <unistd.h> |
#include <unistd.h> |
32 |
#include <stdio.h> |
#include <stdio.h> |
38 |
#include "../common/weechat.h" |
#include "../common/weechat.h" |
39 |
#include "irc.h" |
#include "irc.h" |
40 |
#include "../common/command.h" |
#include "../common/command.h" |
41 |
#include "../common/config.h" |
#include "../common/weeconfig.h" |
42 |
#include "../gui/gui.h" |
#include "../gui/gui.h" |
43 |
|
|
44 |
|
|
60 |
strcpy (hostname, _("unknown")); |
strcpy (hostname, _("unknown")); |
61 |
gui_printf (server->window, |
gui_printf (server->window, |
62 |
_("%s: using local hostname \"%s\"\n"), |
_("%s: using local hostname \"%s\"\n"), |
63 |
WEECHAT_NAME, hostname); |
PACKAGE_NAME, hostname); |
64 |
server_sendf (server, |
server_sendf (server, |
65 |
"NICK %s\r\n" |
"NICK %s\r\n" |
66 |
"USER %s %s %s :%s\r\n", |
"USER %s %s %s :%s\r\n", |
976 |
{ |
{ |
977 |
irc_display_prefix (server->window, PREFIX_INFO); |
irc_display_prefix (server->window, PREFIX_INFO); |
978 |
gui_printf (server->window, _("%s, compiled on %s %s\n"), |
gui_printf (server->window, _("%s, compiled on %s %s\n"), |
979 |
WEECHAT_NAME_AND_VERSION, |
PACKAGE_STRING, |
980 |
__DATE__, __TIME__); |
__DATE__, __TIME__); |
981 |
server_sendf (server, "VERSION\r\n"); |
server_sendf (server, "VERSION\r\n"); |
982 |
} |
} |