summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-02-21 18:46:10 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-02-21 18:46:10 +0100
commit3187d9627b46193d18ee4e90721d8b059cc95d70 (patch)
treedfb12aaf2c320909f250bf974c6ce3bcbe046586 /src
parentdec0e7dc1206e928c38291aae3f5486fd8a8bf12 (diff)
downloadweechat-3187d9627b46193d18ee4e90721d8b059cc95d70.zip
Removed kernel info in CTCP VERSION reply (IRC plugin) (task #7494)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index b11d22843..ef8f657c7 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -39,7 +39,6 @@
#include <string.h>
#include <ctype.h>
#include <wctype.h>
-#include <sys/utsname.h>
#include <sys/time.h>
#include <time.h>
@@ -1571,7 +1570,6 @@ irc_protocol_reply_version (struct t_irc_server *server, struct t_irc_channel *c
char *nick, char *message, int ignore)
{
char *pos, *version, *date;
- struct utsname *buf;
struct t_gui_buffer *ptr_buffer;
ptr_buffer = (channel) ? channel->buffer : server->buffer;
@@ -1593,24 +1591,10 @@ irc_protocol_reply_version (struct t_irc_server *server, struct t_irc_channel *c
date = weechat_info_get ("date");
if (version && date)
{
- buf = (struct utsname *)malloc (sizeof (struct utsname));
- if (buf && (uname (buf) >= 0))
- {
- irc_server_sendf (server,
- "NOTICE %s :%sVERSION %s v%s"
- " compiled on %s, running "
- "%s %s / %s%s",
- nick, "\01", "WeeChat", version, date,
- &buf->sysname,
- &buf->release, &buf->machine, "\01");
- free (buf);
- }
- else
- irc_server_sendf (server,
- "NOTICE %s :%sVERSION %s v%s"
- " compiled on %s%s",
- nick, "\01", "WeeChat", version, date,
- "\01");
+ irc_server_sendf (server,
+ "NOTICE %s :%sVERSION WeeChat %s (%s)%s",
+ nick, "\01", version, date, "\01");
+
if (pos)
{
weechat_printf (ptr_buffer,