summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-01-01 18:06:29 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-01-01 18:06:29 +0100
commitd24f6e9e172c2917841b1e4cf02a84cacd2bd482 (patch)
tree9111577478bacf654cd4b04baa08813926ed5024 /src/core
parentb0a2274496fae314210361d997becbbad8f2146c (diff)
downloadweechat-d24f6e9e172c2917841b1e4cf02a84cacd2bd482.zip
Update copyright dates
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/Makefile.am2
-rw-r--r--src/core/wee-backtrace.c2
-rw-r--r--src/core/wee-backtrace.h2
-rw-r--r--src/core/wee-command.c2
-rw-r--r--src/core/wee-command.h2
-rw-r--r--src/core/wee-completion.c2
-rw-r--r--src/core/wee-completion.h2
-rw-r--r--src/core/wee-config-file.c2
-rw-r--r--src/core/wee-config-file.h2
-rw-r--r--src/core/wee-config.c2
-rw-r--r--src/core/wee-config.h2
-rw-r--r--src/core/wee-debug.c2
-rw-r--r--src/core/wee-debug.h2
-rw-r--r--src/core/wee-hashtable.c2
-rw-r--r--src/core/wee-hashtable.h2
-rw-r--r--src/core/wee-hook.c2
-rw-r--r--src/core/wee-hook.h2
-rw-r--r--src/core/wee-infolist.c2
-rw-r--r--src/core/wee-infolist.h2
-rw-r--r--src/core/wee-input.c2
-rw-r--r--src/core/wee-input.h2
-rw-r--r--src/core/wee-list.c2
-rw-r--r--src/core/wee-list.h2
-rw-r--r--src/core/wee-log.c2
-rw-r--r--src/core/wee-log.h2
-rw-r--r--src/core/wee-network.c2
-rw-r--r--src/core/wee-network.h2
-rw-r--r--src/core/wee-proxy.c2
-rw-r--r--src/core/wee-proxy.h2
-rw-r--r--src/core/wee-string.c2
-rw-r--r--src/core/wee-string.h2
-rw-r--r--src/core/wee-upgrade-file.c2
-rw-r--r--src/core/wee-upgrade-file.h2
-rw-r--r--src/core/wee-upgrade.c2
-rw-r--r--src/core/wee-upgrade.h2
-rw-r--r--src/core/wee-utf8.c2
-rw-r--r--src/core/wee-utf8.h2
-rw-r--r--src/core/wee-util.c2
-rw-r--r--src/core/wee-util.h2
-rw-r--r--src/core/weechat.c30
-rw-r--r--src/core/weechat.h6
42 files changed, 64 insertions, 52 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index dd18ba928..7b4fdfd2b 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+# Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2008 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
#
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
index 7f9fb525f..c92beb856 100644
--- a/src/core/Makefile.am
+++ b/src/core/Makefile.am
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+# Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
diff --git a/src/core/wee-backtrace.c b/src/core/wee-backtrace.c
index 7ebc6e0b4..91c4f4727 100644
--- a/src/core/wee-backtrace.c
+++ b/src/core/wee-backtrace.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-backtrace.h b/src/core/wee-backtrace.h
index cb3ce237b..439370423 100644
--- a/src/core/wee-backtrace.h
+++ b/src/core/wee-backtrace.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 4fba9ccd9..d6ab14857 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-command.h b/src/core/wee-command.h
index adcc5b537..222fbd727 100644
--- a/src/core/wee-command.h
+++ b/src/core/wee-command.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-completion.c b/src/core/wee-completion.c
index 22f924ef4..b7a1d00c9 100644
--- a/src/core/wee-completion.c
+++ b/src/core/wee-completion.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-completion.h b/src/core/wee-completion.h
index e13dc9870..3e8dcf446 100644
--- a/src/core/wee-completion.h
+++ b/src/core/wee-completion.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index 7fc1458e5..6fb707de4 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-config-file.h b/src/core/wee-config-file.h
index 1dd8a4e0a..679dc2486 100644
--- a/src/core/wee-config-file.h
+++ b/src/core/wee-config-file.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index cd181be5f..6128b0dcb 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index 94a053dab..baef06f04 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c
index 6035b46c4..b0c90eba7 100644
--- a/src/core/wee-debug.c
+++ b/src/core/wee-debug.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-debug.h b/src/core/wee-debug.h
index c3230d3bf..b3f84b901 100644
--- a/src/core/wee-debug.h
+++ b/src/core/wee-debug.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-hashtable.c b/src/core/wee-hashtable.c
index f11e7672c..2080426d3 100644
--- a/src/core/wee-hashtable.c
+++ b/src/core/wee-hashtable.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2010-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-hashtable.h b/src/core/wee-hashtable.h
index baad83773..4a76c6f21 100644
--- a/src/core/wee-hashtable.h
+++ b/src/core/wee-hashtable.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2010-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index e1c852b17..6bce94883 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-hook.h b/src/core/wee-hook.h
index 2cd9fd760..1c2e357d9 100644
--- a/src/core/wee-hook.h
+++ b/src/core/wee-hook.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-infolist.c b/src/core/wee-infolist.c
index 3f6ba5b9a..3bc763e94 100644
--- a/src/core/wee-infolist.c
+++ b/src/core/wee-infolist.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-infolist.h b/src/core/wee-infolist.h
index 956949a20..4571230d8 100644
--- a/src/core/wee-infolist.h
+++ b/src/core/wee-infolist.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-input.c b/src/core/wee-input.c
index 20fa71cec..d803002d4 100644
--- a/src/core/wee-input.c
+++ b/src/core/wee-input.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-input.h b/src/core/wee-input.h
index 83eb709a2..f13344d19 100644
--- a/src/core/wee-input.h
+++ b/src/core/wee-input.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-list.c b/src/core/wee-list.c
index 411f71616..948b3acdd 100644
--- a/src/core/wee-list.c
+++ b/src/core/wee-list.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-list.h b/src/core/wee-list.h
index a2efff0fc..3ffc4136d 100644
--- a/src/core/wee-list.h
+++ b/src/core/wee-list.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-log.c b/src/core/wee-log.c
index c7a5c6854..2bc2fde68 100644
--- a/src/core/wee-log.c
+++ b/src/core/wee-log.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-log.h b/src/core/wee-log.h
index 2b3ed67aa..36d1777bb 100644
--- a/src/core/wee-log.h
+++ b/src/core/wee-log.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index ae19be861..f74a90bea 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2010 Emmanuel Bouthenot <kolter@openics.org>
* Copyright (C) 2010 Gu1ll4um3r0m41n <aeroxteam@gmail.com>
*
diff --git a/src/core/wee-network.h b/src/core/wee-network.h
index 722a35dd5..33fd9fbc6 100644
--- a/src/core/wee-network.h
+++ b/src/core/wee-network.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-proxy.c b/src/core/wee-proxy.c
index 0596b27ef..7e3406d17 100644
--- a/src/core/wee-proxy.c
+++ b/src/core/wee-proxy.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-proxy.h b/src/core/wee-proxy.h
index de9f54874..fd22463d7 100644
--- a/src/core/wee-proxy.h
+++ b/src/core/wee-proxy.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index a4c29c923..1a8dd090f 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-string.h b/src/core/wee-string.h
index e6928c9cc..8b4465256 100644
--- a/src/core/wee-string.h
+++ b/src/core/wee-string.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-upgrade-file.c b/src/core/wee-upgrade-file.c
index fa34f5225..9af4910c4 100644
--- a/src/core/wee-upgrade-file.c
+++ b/src/core/wee-upgrade-file.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-upgrade-file.h b/src/core/wee-upgrade-file.h
index 255ba0894..53b0540f1 100644
--- a/src/core/wee-upgrade-file.h
+++ b/src/core/wee-upgrade-file.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 4eeb0091b..2c2eb4963 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-upgrade.h b/src/core/wee-upgrade.h
index df40d0062..95675e1fc 100644
--- a/src/core/wee-upgrade.h
+++ b/src/core/wee-upgrade.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-utf8.c b/src/core/wee-utf8.c
index 563032e35..d4cacd0db 100644
--- a/src/core/wee-utf8.c
+++ b/src/core/wee-utf8.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
diff --git a/src/core/wee-utf8.h b/src/core/wee-utf8.h
index 9454ebd6e..0f7a4244a 100644
--- a/src/core/wee-utf8.h
+++ b/src/core/wee-utf8.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-util.c b/src/core/wee-util.c
index a1eaf29fa..b01f6d922 100644
--- a/src/core/wee-util.c
+++ b/src/core/wee-util.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/wee-util.h b/src/core/wee-util.h
index 9f87f1c52..cd88c6975 100644
--- a/src/core/wee-util.h
+++ b/src/core/wee-util.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
diff --git a/src/core/weechat.c b/src/core/weechat.c
index 0738a7288..7812c93ba 100644
--- a/src/core/weechat.c
+++ b/src/core/weechat.c
@@ -14,7 +14,7 @@
* ## ##
* ##########################################################################
*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
@@ -104,24 +104,36 @@ weechat_init_vars ()
}
/*
- * weechat_display_usage: display WeeChat usage
+ * weechat_display_copyright: display WeeChat copyright
*/
void
-weechat_display_usage (char *exec_name)
+weechat_display_copyright ()
{
string_iconv_fprintf (stdout, "\n");
string_iconv_fprintf (stdout,
/* TRANSLATORS: "%s %s" after "compiled on" is date and time */
- _("%s Copyright (C) 2003-2010, compiled on %s %s\n"
+ _("WeeChat %s Copyright %s, compiled on %s %s\n"
"Developed by Sebastien Helleu <flashcode@flashtux.org> "
"- %s"),
- PACKAGE_STRING, __DATE__, __TIME__, WEECHAT_WEBSITE);
- string_iconv_fprintf (stdout, "\n\n");
+ PACKAGE_VERSION, WEECHAT_COPYRIGHT_DATE,
+ __DATE__, __TIME__, WEECHAT_WEBSITE);
+ string_iconv_fprintf (stdout, "\n");
+}
+
+/*
+ * weechat_display_usage: display WeeChat usage
+ */
+
+void
+weechat_display_usage (char *exec_name)
+{
+ weechat_display_copyright ();
+ string_iconv_fprintf (stdout, "\n");
string_iconv_fprintf (stdout,
_("Usage: %s [option...] [plugin:option...]\n"),
exec_name, exec_name);
- string_iconv_fprintf (stdout, "\n\n");
+ string_iconv_fprintf (stdout, "\n");
string_iconv_fprintf (stdout,
_(" -a, --no-connect disable auto-connect to servers at startup\n"
" -c, --colors display default colors in terminal\n"
@@ -223,7 +235,9 @@ weechat_parse_args (int argc, char *argv[])
else if ((strcmp (argv[i], "-l") == 0)
|| (strcmp (argv[i], "--license") == 0))
{
- string_iconv_fprintf (stdout, "\n%s%s", WEECHAT_LICENSE_TEXT);
+ weechat_display_copyright ();
+ string_iconv_fprintf (stdout, "\n");
+ string_iconv_fprintf (stdout, "%s%s", WEECHAT_LICENSE_TEXT);
weechat_shutdown (EXIT_SUCCESS, 0);
}
else if (strcmp (argv[i], "--no-dlclose") == 0)
diff --git a/src/core/weechat.h b/src/core/weechat.h
index f7abe407e..2d0644b33 100644
--- a/src/core/weechat.h
+++ b/src/core/weechat.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
+ * Copyright (C) 2003-2011 Sebastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
*
* This file is part of WeeChat, the extensible chat client.
@@ -51,7 +51,7 @@
#endif
-#define WEECHAT_COPYRIGHT_DATE "(C) 2003-2010"
+#define WEECHAT_COPYRIGHT_DATE "(C) 2003-2011"
#define WEECHAT_WEBSITE "http://www.weechat.org/"
#define WEECHAT_WEBSITE_DOWNLOAD "http://www.weechat.org/download"
@@ -62,8 +62,6 @@
/* license */
#define WEECHAT_LICENSE_TEXT \
- "WeeChat " PACKAGE_VERSION " Copyright (C) 2003-2010, compiled on " __DATE__ " " __TIME__ \
- "\nDeveloped by Sebastien Helleu <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
"WeeChat is free software; you can redistribute it and/or modify\n" \
"it under the terms of the GNU General Public License as published by\n" \
"the Free Software Foundation; either version 3 of the License, or\n" \