1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-17 00:24:47 +02:00

Compare commits

...

93 Commits

Author SHA1 Message Date
Sebastien Helleu c056a03871 Version 0.2.6 2007-09-06 08:24:31 +00:00
Sebastien Helleu 61ee836891 Updated russian translations 2007-09-05 16:21:28 +00:00
Sebastien Helleu 33c9ee86af Updated ChangeLog 2007-09-05 15:50:23 +00:00
Sebastien Helleu 8c5e618c88 Fixed bug with log of plugin messages (option log_plugin_msg) 2007-09-05 14:26:57 +00:00
Jiri Golembiovsky c0255add37 Updated czech translations 2007-09-04 22:17:10 +00:00
Sebastien Helleu 1946b4cacc Fixed ChangeLog message 2007-09-02 16:42:10 +00:00
Sebastien Helleu 9d69720b26 Added new option "deloutq" to /server command to flush all servers messages out queues (task #7221) 2007-09-02 16:24:18 +00:00
Sebastien Helleu 68fd773730 Fixed display bug with some special chars in messages (some words were truncated on screen) (bug #20944) 2007-09-02 15:34:29 +00:00
Sebastien Helleu dd0b1701e3 Fixed paste detection: does not count empty lines (bug #20953) 2007-09-02 12:54:54 +00:00
Sebastien Helleu 72d9c51ab0 Changed order of compilation for source directories with cmake 2007-08-31 13:28:05 +00:00
Sebastien Helleu 5218a359af Removed compilation warning when plugins are not compiled 2007-08-31 13:27:07 +00:00
Sebastien Helleu 88a6c491a2 Removed compilation warning when iconv is not found 2007-08-31 13:26:51 +00:00
Sebastien Helleu edb21c362a Fixed UTF-8 bug with color encoding/decoding 2007-08-31 11:24:24 +00:00
Sebastien Helleu f523d2b0a5 Added "/debug buffer" command to see raw buffer content 2007-08-31 11:21:24 +00:00
Sebastien Helleu e05be4e2b3 Fixed crash when searching text in buffer with ctrl-R (bug #20938) 2007-08-30 14:32:31 +00:00
Jiri Golembiovsky 12fcca4c31 Updated czech translations 2007-08-29 18:16:15 +00:00
Sebastien Helleu 882b72cd0c Added string length limit for setup file options 2007-08-29 12:53:35 +00:00
Sebastien Helleu ebae0cb7d5 Fixed typo in german and english doc 2007-08-29 12:46:19 +00:00
Sebastien Helleu 7f1335c6f0 Fixed bug with flock() when home is on NFS filesystem (bug #20913) 2007-08-27 13:11:25 +00:00
Sebastien Helleu b0490eb249 Fixed typo in /help server 2007-08-27 09:55:38 +00:00
Sebastien Helleu c4710cb22b Added weeter.pl script 2007-08-27 09:48:46 +00:00
Sebastien Helleu ca814fdb3f Updated growl-notify.pl script 2007-08-27 09:41:39 +00:00
Sebastien Helleu 54b74ed1e1 Added growl-notify.pl script 2007-08-27 09:41:19 +00:00
Sebastien Helleu 73d9515f5c Added option to align text of messages (except first lines) (task #7246) 2007-08-27 08:22:41 +00:00
Sebastien Helleu 57282055c3 Fixed typo in /help server 2007-08-27 07:32:27 +00:00
Sebastien Helleu 7863d4cece Fixed user modes in nicklist when ban and nick mode are received in the same MODE message (bug #20870) 2007-08-23 08:26:15 +00:00
Sebastien Helleu 76afa6d2b5 Fixed IRC message 333: silently ignore message if error when parsing it 2007-08-21 15:45:26 +00:00
Sebastien Helleu 5245ee6b14 Updated doc 2007-08-20 08:46:20 +00:00
Sebastien Helleu 69bd50d74c Fixed server option "command_delay": does not freeze WeeChat any more 2007-08-20 08:37:31 +00:00
Julien Louis fb8bae3c78 Add Support for gtk2 interface with cmake build system 2007-08-18 17:17:54 +00:00
Sebastien Helleu 0c0e511079 Code cleanup for paste detection 2007-08-18 08:52:12 +00:00
Julien Louis 07d9deaf95 Add uninstall and dist targets to the cmake build system. 2007-08-18 08:27:32 +00:00
Sebastien Helleu 4908e196ad Fixed problem with input of UTF-8 chars in last cvs 2007-08-17 12:39:55 +00:00
Sebastien Helleu dc92ee389c Added paste detection, new options look_paste_max_lines and col_input_actions (task #5442) 2007-08-17 09:09:09 +00:00
Sebastien Helleu 30c3fa9d98 Code cleanup: renamed some constants and variables (prefix added) 2007-08-16 13:54:15 +00:00
Sebastien Helleu 0c8867c9e3 Fixed parsing of command "353" when prefixes were not received from server 2007-08-14 14:42:10 +00:00
Sebastien Helleu 57ceaba3d1 Updated FIFO sample script in doc 2007-08-13 16:05:44 +00:00
Sebastien Helleu aed84560f8 Fixed bug with highlight and UTF-8 chars around word (bug #20753) 2007-08-12 09:37:43 +00:00
Sebastien Helleu 1108ef217f Updated swedish quickstart guide 2007-08-10 14:51:03 +00:00
Sebastien Helleu f827677ba9 Upgraded script licence to GPLv3 2007-08-10 14:38:53 +00:00
Sebastien Helleu 8011a2534f Added layout.pl script 2007-08-10 12:44:35 +00:00
Sebastien Helleu e4de086728 Updated FAQ 2007-08-10 11:02:03 +00:00
Sebastien Helleu 7c6c2e8e84 Updated FAQ 2007-08-10 10:46:38 +00:00
Sebastien Helleu 3da3c0c96e Added Makefile.am for swedish doc 2007-08-09 13:18:22 +00:00
Sebastien Helleu c1c9dd2da8 Added swedish quickstart guide 2007-08-09 13:11:00 +00:00
Sebastien Helleu ec78674d4e Added support of channel mode +u (channel user) (bug #20717) 2007-08-09 09:35:17 +00:00
Sebastien Helleu c246d44762 Fixed /server help message 2007-08-08 14:27:02 +00:00
Sebastien Helleu 09ddfcd860 Improved /connect command to connect to a host by creating a temporary server, added option to /server to create temporary server (task #7095) 2007-08-08 14:08:06 +00:00
Sebastien Helleu 028d38b44e Allow clear of multiple selected buffers with /clear (patch #6112) 2007-08-08 09:07:19 +00:00
Sebastien Helleu f68a2cbfcd Added "copy" and "rename" options to /server command 2007-08-08 08:19:04 +00:00
Sebastien Helleu 3c10d2205e Moved charset plugin section in doc 2007-08-06 09:53:40 +00:00
Sebastien Helleu 362866fdf2 Added key for setting unread marker on all buffers (default: ctrl-S + ctrl-U) (task 7180) 2007-08-06 09:30:22 +00:00
Sebastien Helleu d150376c54 Added channel completion to /join command 2007-08-02 09:52:12 +00:00
Sebastien Helleu 9d3e31e165 Fixed nick prefix display on servers that doesn't support all prefixes (bug #20025) 2007-08-01 10:44:51 +00:00
Sebastien Helleu efd511dea4 Fixed terminal encoding detection when NLS is disabled (bug #20646) 2007-08-01 09:59:00 +00:00
Sebastien Helleu 0904d9afaf Fixed crash when sending data to channel or pv on disconnected server (bug #20524) 2007-07-18 23:26:23 +00:00
Sebastien Helleu 2da039222d Added pv count in /server output 2007-07-18 16:50:56 +00:00
Sebastien Helleu 271bd21802 Improved command /server ant its output, added plural form in PO files 2007-07-18 16:35:12 +00:00
Sebastien Helleu bd0b7957a3 Added 3 default new keys: ctrl-B (left), ctrl-F (right), ctrl-D (delete) 2007-07-18 13:11:58 +00:00
Sebastien Helleu bd2ab776fe Added key Alt-J + Alt-P in doc 2007-07-18 12:52:53 +00:00
Sebastien Helleu 2c3fad454c Added "buffer_move" event handler to plugins API (task #6708) 2007-07-18 12:02:40 +00:00
Sebastien Helleu b1a99c5e6f Updated some messages in doc 2007-07-18 11:58:49 +00:00
Sebastien Helleu 3b48025071 Added key function "jump_previous_buffer" to jump to buffer previously displayed (new key: alt-J + alt-P) (task #7085) 2007-07-15 18:06:56 +00:00
Sebastien Helleu feec343ffb Added "-nojoin" option for /connect and /reconnect commands (task #7074), added "%*" to completion template (repeat last completion). 2007-07-13 15:38:26 +00:00
Sebastien Helleu ddc10d0164 Added new question in FAQ about highlights 2007-07-13 13:49:54 +00:00
Sebastien Helleu 5bf2c326f2 Added new keys for color (^Cb, ^Cc, ..) in doc 2007-07-12 15:59:12 +00:00
Sebastien Helleu 241f70f869 Fixed bugs with IRC color in messages, now color codes are inserted in command line with ^Cc,^Cb,.. instead of %C,%B,.. (bug #20222, task #7060) 2007-07-12 15:00:45 +00:00
Sebastien Helleu 9d5ef17bd6 Fixed bug with smart nick completion (last speakers first) when a nick is changed 2007-07-09 09:14:51 +00:00
Sebastien Helleu 825a9cfdf6 Fixed charset bug with channel names in status bar (bug #20400) 2007-07-08 11:42:38 +00:00
Sebastien Helleu fc2693c8e1 Added "scroll" option to /buffer command 2007-07-05 16:44:42 +00:00
Sebastien Helleu 0bbe747f78 Added small hack to make weechat server connection ok with Cygwin. Connection may block under Cygwin, waiting for better solution. 2007-07-03 16:35:20 +00:00
Sebastien Helleu feedeb25f6 Removed unused variable 2007-07-03 14:45:55 +00:00
Sebastien Helleu f1a39ce7d7 Replaced GPL 2 license by GPL 3 2007-07-02 12:25:13 +00:00
Sebastien Helleu 585681e5a0 Down key now saves input to history and clears input line (task #7049) 2007-07-01 11:20:34 +00:00
Sebastien Helleu cd3599e6db Removed tests on binary when using /upgrade 2007-06-12 13:42:33 +00:00
Sebastien Helleu bbe20b9b30 Fixed log file when channel name contains "/" (bug #20072) 2007-06-12 13:02:19 +00:00
Sebastien Helleu 00c4e36357 Command /away allowed when not connected to server (internally stored and AWAY command is sent when connecting to server) (task #7003) 2007-06-12 10:17:11 +00:00
Sebastien Helleu d3d4bcaf2b Version 0.2.6-cvs (for cmake build) 2007-06-12 07:36:52 +00:00
Julien Louis 8cdad47de8 Search for Dl library if we do not disable plugins 2007-06-12 06:36:35 +00:00
Julien Louis a8017fe06c Fix Gettext detection and code cleanup. 2007-06-11 21:36:40 +00:00
Julien Louis 4297b55bf2 Explicitly link against libdl 2007-06-11 20:49:10 +00:00
Julien Louis 83db899ce7 re-introduce ELSEIF check since it breaks libintl check on other plateforms. 2007-06-11 19:24:02 +00:00
Julien Louis 894cda91c9 check for dgettext function in libintl on non openbsd platforms 2007-06-11 18:25:20 +00:00
Julien Louis 47ce432199 Fix Typo in FindGettext.cmake 2007-06-11 18:02:53 +00:00
Julien Louis c9625e1f58 Link weechat-curses against libutf8 on OpenBSD plateform 2007-06-11 17:47:57 +00:00
Julien Louis d604e222ea Fix libintl detection on openbsd 2007-06-11 17:47:47 +00:00
Julien Louis fb34430076 Add a check for utf8/wchar.h header on OpenBSD plateform
and remove commented check
2007-06-11 17:47:28 +00:00
Julien Louis 636dd48a7b The lua library on openbsd is named liblua so we check now for liblua 2007-06-11 17:46:49 +00:00
Sebastien Helleu c1c7fbc156 Updated doc 2007-06-11 13:49:20 +00:00
Sebastien Helleu 3799b83107 Added argument for /upgrade command (path to binary), check that binary file is found and has execution permissions before upgrading 2007-06-11 13:46:50 +00:00
Sebastien Helleu b80c53e87d Fixed bug with /topic when channel not open and topic not defined (bug #20141) 2007-06-11 06:46:53 +00:00
Sebastien Helleu 299d37a342 Added hotlist sort with new option "look_hotlist_sort" (task #5870) 2007-06-08 16:04:50 +00:00
Sebastien Helleu 6971faba65 Version 0.2.6-cvs 2007-06-07 16:12:15 +00:00
368 changed files with 36888 additions and 27232 deletions
+23 -4
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
PROJECT(weechat)
@@ -25,7 +24,7 @@ IF(PREFIX)
SET(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "Install path prefix" FORCE)
ENDIF(PREFIX)
SET(VERSION 0.2.5-cvs)
SET(VERSION 0.2.6)
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
SET(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/weechat)
SET(SHAREDIR ${CMAKE_INSTALL_PREFIX}/share/weechat)
@@ -33,6 +32,7 @@ SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
STRING(REPLACE "\";\"" "\ " PKG_STRING ${PKG_STRING})
OPTION(DISABLE_NCURSES "Disable Ncurses interface")
OPTION(ENABLE_GTK "Enable GTK interface")
OPTION(DISABLE_NLS "Disable Native Language Support")
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
OPTION(DISABLE_PLUGINS "Disable Plugins support")
@@ -51,3 +51,22 @@ IF(NOT DISABLE_DOC)
ENDIF(NOT DISABLE_DOC)
CONFIGURE_FILE(config.h.cmake config.h @ONLY)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/makedist.sh.in"
"${CMAKE_CURRENT_BINARY_DIR}/makedist.sh" IMMEDIATE
@ONLY)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
ADD_CUSTOM_TARGET(dist
"${CMAKE_BINARY_DIR}/makedist.sh"
DEPENDS doc
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+591 -257
View File
@@ -1,285 +1,626 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
TERMS AND CONDITIONS
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
0. Definitions.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
"This License" refers to version 3 of the GNU General Public License.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
A "covered work" means either the unmodified Program or a work based
on the Program.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
1. Source Code.
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
The Corresponding Source for a work in source code form is that
same work.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
13. Use with the GNU Affero General Public License.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
14. Revised Versions of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
NO WARRANTY
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
15. Disclaimer of Warranty.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -287,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -304,37 +645,30 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+54 -1
View File
@@ -1,9 +1,62 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-06-07
ChangeLog - 2007-09-06
Version 0.2.6 (2007-09-06):
* fixed bug with log of plugin messages (option log_plugin_msg)
* added new option "deloutq" to /server command to delete all servers
messages out queues (task #7221)
* fixed display bug with some special chars in messages (some words were
truncated on screen) (bug #20944)
* fixed UTF-8 bug with color encoding/decoding
* fixed crash when searching text in buffer with ctrl-R (bug #20938)
* added string length limit for setup file options
* fixed bug with flock() when home is on NFS filesystem (bug #20913)
* added option to align text of messages (except first lines) (task #7246)
* fixed user modes in nicklist when ban and nick mode are received in the
same MODE message (bug #20870)
* fixed IRC message 333: silently ignore message if error when parsing it
* fixed server option "command_delay": does not freeze WeeChat any more
* added paste detection, new options look_paste_max_lines and
col_input_actions (task #5442)
* fixed bug with highlight and UTF-8 chars around word (bug #20753)
* added swedish quickstart guide
* added support of channel mode +u (channel user) (bug #20717)
* improved /connect command to connect to a host by creating a temporary
server, added option to /server to create temporary server (task #7095)
* added "copy", "rename" and "keep" options to /server command
* allow clear of multiple selected buffers with /clear (patch #6112)
* added key for setting unread marker on all buffers (default:
ctrl-S + ctrl-U) (task 7180)
* fixed nick prefix display on servers that doesn't support all prefixes
(bug #20025)
* fixed terminal encoding detection when NLS is disabled (bug #20646)
* fixed crash when sending data to channel or pv on disconnected server
(bug #20524)
* improved command /server ant its output
* added 3 default new keys: ctrl-B (left), ctrl-F (right), ctrl-D (delete)
* added "buffer_move" event handler to plugins API (task #6708)
* added key function "jump_previous_buffer" to jump to buffer previously
displayed (new key: alt-J + alt-P) (task #7085)
* added "%*" to completion template, to repeat last completion
* added "-nojoin" option for /connect and /reconnect commands (task #7074)
* fixed bugs with IRC color in messages, now color codes are inserted in
command line with ^Cc,^Cb,.. instead of %C,%B,.. (bug #20222, task #7060)
* fixed bug with smart nick completion (last speakers first) when a nick
is changed
* fixed charset bug with channel names in status bar (bug #20400)
* added "scroll" option to /buffer command
* down key now saves input to history and clears input line (task #7049)
* fixed log file when channel name contains "/" (bug #20072)
* command /away allowed when not connected to server (internally stored
and AWAY command is sent when connecting to server) (task #7003)
* added argument for /upgrade command (path to binary)
* fixed bug with /topic when channel not open and topic not defined
(bug #20141)
* added hotlist sort with new option "look_hotlist_sort" (task #5870)
Version 0.2.5 (2007-06-07):
* fixed QUOTE command: now allowed when socket is ok (even if IRC
connection to server is not ok) (bug #20113)
+15 -1
View File
@@ -1,4 +1,4 @@
WeeChat FAQ, 2007-06-07
WeeChat FAQ, 2007-09-06
=======================
Intended audience:
@@ -92,11 +92,15 @@ A: For versions < 0.2.3, please upgrade to last stable version.
- check that weechat-curses is linked to libncursesw (warning: needed
on most distributions but not all) :
ldd /path/to/weechat-curses
- check that "Charset" plugin is loaded with /plugin command
(if it is not, then you probably need "weechat-plugins" package)
- check charset line (on server buffer), you should see ISO-XXXXXX or
UTF-8 for terminal charset. If you see ANSI_X3.4-1968 or other values,
probably your locale is wrong.
- setup global decode value, for example:
/setp charset.global.decode = ISO-8859-15
- if you are using UTF-8 locale, check that your terminal is UTF-8
ready. Terminal recommended for UTF-8 is rxvt-unicode.
2.5
@@ -189,6 +193,16 @@ A: You can use a terminal with rectangular selection (like rxvt-unicode,
/set look_nicklist_position = top
2.13
================================================================================
Q: How to be warned when someone highlights me on a channel ?
A: You can use sound.pl script (available on scripts page), and then
setup a system command (to play sound, display message, ..) with this
command :
/setp perl.sound.cmd_highlight = "/usr/bin/command arguments..."
3.1
================================================================================
Q: How should I report bugs?
+16 -1
View File
@@ -1,4 +1,4 @@
WeeChat FAQ, 2007-06-07
WeeChat FAQ, 2007-09-06
=======================
Public concerné :
@@ -99,12 +99,17 @@ R: Pour les versions < 0.2.3, merci d'installer la derni
- vérifiez que weechat-curses est lié avec libncursesw (attention:
nécessaire sur beaucoup de distributions, mais pas toutes) :
ldd /chemin/vers/weechat-curses
- vérifiez que l'extension "Charset" est chargée avec la commande
/plugin (s'il ne l'est pas, vous devez peut-être installer le
paquet "weechat-plugins")
- vérifiez la ligne charset (sur le tampon serveur), vous devriez voir
ISO-XXXXXX ou UTF-8 pour le charset du terminal. Si vous voyez
ANSI_X3.4-1968 ou d'autres valeurs, votre locale est probablement
erronée.
- affectez la valeur pour le décodage global, par exemple :
/setp charset.global.decode = ISO-8859-15
- si vous utilisez la locale UTF-8, vérifiez que votre terminal est
compatible UTF-8. Un terminal conseillé pour l'UTF-8 est rxvt-unicode.
2.5
@@ -200,6 +205,16 @@ R: Vous pouvez utiliser un terminal qui propose la s
/set look_nicklist_position = top
2.13
================================================================================
Q: Comment être averti lorsque quelqu'un prononce mon pseudo sur un canal ?
R: Vous pouvez utiliser le script sound.pl (disponible sur la page des
scripts), puis configurer une commande système (jouant un son, affichant
un message à l'écran, etc...) comme ceci :
/setp perl.sound.cmd_highlight = "/usr/bin/commande parametres..."
3.1
================================================================================
Q: Comment dois-je reporter les bugs ?
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS = po doc intl src
+4
View File
@@ -1,6 +1,10 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
* FlashCode, 2007-09-06
WeeChat 0.2.6 released.
* FlashCode, 2007-06-07
WeeChat 0.2.5 released.
+2 -3
View File
@@ -29,7 +29,7 @@ WeeChat is distributed under GPL licence (see COPYING file for complete license)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -38,8 +38,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
---
+16
View File
@@ -1,4 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###
### common stuff
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Aspell
+11 -5
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Gettext
@@ -42,17 +41,24 @@ SET(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
CHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL_H)
IF(HAVE_LIBINTL_H)
CHECK_FUNCTION_EXISTS(dgettext LIBC_HAS_DGETTEXT)
IF(LIBC_HAS_DGETTEXT)
SET(GETTEXT_FOUND TRUE)
ELSE(LIBC_HAS_DGETTEXT)
FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl libintl
FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl
PATHS
/usr/local/lib
/usr/lib
)
IF(LIBINTL_LIBRARY)
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
SET(CMAKE_REQUIRED_LIBRARIES "iconv")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
IF(LIBINTL_HAS_DGETTEXT)
SET(GETTEXT_FOUND TRUE)
ENDIF(LIBINTL_HAS_DGETTEXT)
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find GnuTLS
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Iconv
+3 -4
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Lua
@@ -38,7 +37,7 @@ FIND_PATH(
)
FIND_LIBRARY(
LUA51_LIBRARY NAMES lua51 lua5.1 lua-5.1
LUA51_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
+15
View File
@@ -1,3 +1,18 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
IF(NCURSES_FOUND)
SET(NCURSES_FIND_QUIETLY TRUE)
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Perl libraries
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Python
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Ruby
+21
View File
@@ -0,0 +1,21 @@
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"${file}\"")
IF(NOT EXISTS "${file}")
MESSAGE(FATAL_ERROR "File \"${file}\" does not exists.")
ENDIF(NOT EXISTS "${file}")
EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VARIABLE rm_retval)
IF("${rm_retval}" GREATER 0)
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
ENDIF("${rm_retval}" GREATER 0)
ENDFOREACH(file)
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
VERSION=@VERSION@
SRCROOT=@CMAKE_SOURCE_DIR@
BUILDDIR=@CMAKE_BINARY_DIR@
PROJECT=@PROJECT_NAME@
TAG=release-$(echo $VERSION | sed -e 's/\./-/g')
EXCLUDE="@DIST_EXCLUDE@"
EXPORT_DIR="${PROJECT}-${VERSION}"
if [ -z $CVSROOT ]; then
echo "The CVSROOT variable must be set"
exit 1
fi
echo "Exporting source tree"
if [ $(echo $VERSION | grep cvs) ]; then
cvs export -r HEAD -d $PROJECT-$VERSION $PROJECT
else
cvs export -r $TAG -d $PROJECT-$VERSION $PROJECT
fi
echo "Removing not needed stuff"
for i in $EXCLUDE ; do
echo " $i"
rm -rf $EXPORT_DIR/$i
done
echo "Generating archive"
tar cjf ${BUILDDIR}/${PROJECT}-${VERSION}.tar.bz2 ${EXPORT_DIR}
echo "Cleaning up"
rm -rf ${EXPORT_DIR}
+5 -5
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,18 +11,17 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.56)
AC_INIT(WeeChat, 0.2.5, flashcode@flashtux.org)
AC_INIT(WeeChat, 0.2.6, flashcode@flashtux.org)
AC_CONFIG_SRCDIR([src/common/weechat.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([weechat], [0.2.5])
AM_INIT_AUTOMAKE([weechat], [0.2.6])
# Checks for programs
AC_PROG_CC
@@ -796,6 +795,7 @@ AC_OUTPUT([Makefile
doc/pl/Makefile
doc/cs/Makefile
doc/sco/Makefile
doc/sv/Makefile
src/Makefile
src/common/Makefile
src/irc/Makefile
+3 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(DOC_LANGS
@@ -23,6 +22,7 @@ SET(DOC_LANGS
pl
ru
sco
sv
)
FIND_PROGRAM(
+3 -4
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,11 +11,10 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS = . en fr de ru pl cs sco
SUBDIRS = . en fr de ru pl cs sco sv
man_MANS = weechat-curses.1
+2 -3
View File
@@ -4,7 +4,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = cs
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = de
+40 -5
View File
@@ -108,7 +108,7 @@
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 100</entry>
<entry>0</entry>
<entry>Maximale Größe der Nicklist (Breite oder Höhe, je nach look_nicklist_position (0: kein Maximum); Wenn min == max &gt; 0, ist die Größe fest.</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min = max and &gt; 0, then size is fixed))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
@@ -180,6 +180,13 @@
<entry>20</entry>
<entry>Maximale Größe zum Ausrichten von Nicknamen und anderen Nachrichten (sollte &gt;= look_align_size sein)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen -1 und 64</entry>
<entry>-1</entry>
<entry>Offset for aligning lines of messages (except first lines), default is -1 (align after nick), a null or positive value is offset after beginning of line</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>Zeichenfolge</entry>
@@ -257,10 +264,17 @@
<entry>0</entry>
<entry>Maximale Länge der Namen in der Hotlist (0: kein Limit)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>Zeichenfolge</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Hotlist sort type (group_time_asc (default), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>Boolean</entry>
<entry>zwischen 0 und 32</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'on'</entry>
<entry>Spezielle Nachricht anzeigen, wenn ein neuer Tag beginnt</entry>
</row>
@@ -285,10 +299,17 @@
<entry>'[%n(%m)] '</entry>
<entry>Format der Eingabezeile ('%c' wird durch den Channel- oder Servernamen ersetzt, '%n' durch den Nicknamen und '%m' durch die Nick-Modi)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 2147483647</entry>
<entry>3</entry>
<entry>Max number of lines for paste without asking user (0 = disable this feature)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>zwischen 0 und 2147483647</entry>
<entry>'off'</entry>
<entry>Wenn gesetzt, benutze echtes Weiß, als Voreinstellung jedoch für Terminals mit weißem Hintergrund deaktiviert (solltest du niemals einen weißen Hintergrund benutzen, solltest du diese Option aktivieren um ein echtes Weiß anstelle der voreingestellten Terminal Vordergrundfarbe zu bekommen)</entry>
</row>
@@ -565,6 +586,13 @@
<entry>'red'</entry>
<entry>Farbe für den Text nicht gefunden</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'lightgreen'</entry>
<entry>Color for actions in input window</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>Farbe</entry>
@@ -621,6 +649,13 @@
<entry>'yellow'</entry>
<entry>Farbe des Voice-Symbols</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'blue'</entry>
<entry>Color for user symbol</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>Farbe</entry>
@@ -948,7 +983,7 @@
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'on'</entry>
<entry>Erlaube Benutzern, spezielle Codes zu versenden (%B=fett, %Cxx,yy=Farbe, %U=unterstrichen, %R=reverse/umgekehrt)</entry>
<entry>Allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, ^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
@@ -1226,7 +1261,7 @@
<row>
<entry><option>server_command_delay</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 5</entry>
<entry>zwischen 0 und 3600</entry>
<entry>0</entry>
<entry>Wartezeit in Sekunden nach Ausführung des Befehls, um z.B. eine Authentifizierung zu ermöglichen</entry>
</row>
+8
View File
@@ -157,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>zum letzten Puffer springen</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>jump to previous buffer</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>zum Serverpuffer springen</entry>
@@ -181,6 +185,10 @@
<entry><literal>scroll_unread</literal></entry>
<entry>scrolle zur ersten, ungelesenen Zeile im Puffer</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>set unread marker on all buffers</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>Hotlist leeren</entry>
+374 -171
View File
@@ -8,7 +8,7 @@ Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
This manual is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This manual is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<bookinfo>
<title>WeeChat 0.2.5 - User guide</title>
<title>WeeChat 0.2.6 - User guide</title>
<subtitle>Schneller, leichter und erweiterbarer IRC Client</subtitle>
<author>
@@ -54,24 +53,23 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<legalnotice>
<para>
Dieses Programm ist freie Software. Sie können es unter
den Bedingungen der GNU General Public License,
wie von der Free Software Foundation veröffentlicht,
weitergeben und/oder modifizieren, entweder gemäß Version 2
der Lizenz oder (nach Ihrer Option) jeder späteren Version.
Dieses Programm ist freie Software. Sie können es unter
den Bedingungen der GNU General Public License,
wie von der Free Software Foundation veröffentlicht,
weitergeben und/oder modifizieren, entweder gemäß Version 3
der Lizenz oder (nach Ihrer Option) jeder späteren Version.
</para>
<para>
Die Veröffentlichung dieses Programms erfolgt in der
Hoffnung, daß es Ihnen von Nutzen sein wird, aber OHNE
IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der
MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.
Details finden Sie in der GNU General Public License.
Die Veröffentlichung dieses Programms erfolgt in der
Hoffnung, daß es Ihnen von Nutzen sein wird, aber OHNE
IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der
MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.
Details finden Sie in der GNU General Public License.
</para>
<para>
Sie sollten ein Exemplar der GNU General Public License
zusammen mit diesem Programm erhalten haben. Falls nicht,
schreiben Sie an die Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
Sie sollten ein Exemplar der GNU General Public License
zusammen mit diesem Programm erhalten haben. Falls nicht,
&lt;http://www.gnu.org/licenses/&gt;.
</para>
</legalnotice>
@@ -465,13 +463,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>Links</entry>
<entry>Links / Strg + B</entry>
<entry>
Gehe zum vorherigen Zeichen in der Kommandozeile
</entry>
</row>
<row>
<entry>Rechts</entry>
<entry>Rechts / Strg + F</entry>
<entry>
Gehe zum nächsten Zeichen in der Kommandozeile
</entry>
@@ -494,6 +492,37 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Gehe zum Anfang der Kommandozeile
</entry>
</row>
<!-- TRANSLATION NEEDED -->
<row>
<entry>Strg + C dann B</entry>
<entry>
Insert code for bold text.
</entry>
</row>
<row>
<entry>Strg + C dann C</entry>
<entry>
Insert code for colored text.
</entry>
</row>
<row>
<entry>Strg + C dann O</entry>
<entry>
Insert code for color reset.
</entry>
</row>
<row>
<entry>Strg + C dann R</entry>
<entry>
Insert code for reverse color.
</entry>
</row>
<row>
<entry>Strg + C dann U</entry>
<entry>
Insert code for underlined text.
</entry>
</row>
<row>
<entry>Ende / Strg + E</entry>
<entry>
@@ -519,6 +548,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
(zwei Mal: suche nach dem genauen Text)
</entry>
</row>
<row>
<entry>Strg + S dann Strg + U</entry>
<entry>
<!-- TRANSLATION NEEDED -->
Set unread marker on all buffers
</entry>
</row>
<row>
<entry>Strg + T</entry>
<entry>
@@ -550,7 +586,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>Entfernen</entry>
<entry>Entfernen / Strg + D</entry>
<entry>
Lösche das nächste Zeichen in der Kommandozeile
</entry>
@@ -699,6 +735,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Schalte zum letzten Puffer
</entry>
</row>
<row>
<entry>Alt + J then Alt + P</entry>
<entry>
<!-- TRANSLATION NEEDED -->
Switch to buffer previously displayed
</entry>
</row>
<row>
<entry>Alt + J dann Alt + R</entry>
<entry>
@@ -812,7 +855,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<para>
Wenn die Option IRC-Farben ("<literal>irc_colors_send</literal>") senden
angeschaltet ist, können sie Farbcodierung und Attribute wiefolgt verwenden:
angeschaltet ist, können sie Farbcodierung und Attribute wiefolgt verwenden
<!-- TRANSLATION NEEDED -->
(press Ctrl-C then following letter, with optional value):
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -823,20 +868,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>%B</entry>
<entry>^Cb</entry>
<entry>
Fett (bold)
</entry>
</row>
<row>
<entry>%Cxx</entry>
<entry>^Ccxx</entry>
<entry>
Textfarbe "<literal>xx</literal>" (color)
(siehe Farbtabelle)
</entry>
</row>
<row>
<entry>%Cxx,yy</entry>
<entry>^Ccxx,yy</entry>
<entry>
Textfarbe "<literal>xx</literal>"
und Hintergrund "<literal>yy</literal>"
@@ -844,29 +889,23 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>%O</entry>
<entry>^Co</entry>
<entry>
Schalte Farben und Attribute ab
</entry>
</row>
<row>
<entry>%R</entry>
<entry>^Cr</entry>
<entry>
umgedrehte Farben (tausche Textfarbe mit Hintergrundfarbe)
</entry>
</row>
<row>
<entry>%U</entry>
<entry>^Cu</entry>
<entry>
Unterstreiche Text
</entry>
</row>
<row>
<entry>%%</entry>
<entry>
Schreibe ein einzelnes "<literal>%</literal>"
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
@@ -875,7 +914,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</para>
<para>
Farbcodes für %C:
Farbcodes für ^Cc:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -958,7 +997,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Beispiel: Anzeige von "<literal>hello everybody!</literal>" mit
"<literal>hello</literal>" fett in hellem Blau, und
"<literal>everybody</literal>" unterstrichen in hellem Rot:
<screen><userinput>%C12%Bhello%B%C04%U everybody%U%C!</userinput></screen>
<screen><userinput>^Cc12^Cbhello^Cb^Cc04^Cu everybody^Cu^Cc!</userinput></screen>
</para>
</section>
@@ -1116,117 +1155,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</section>
<section id="secCharset">
<title>Zeichensatz Plugin</title>
<para>
Das Zeichensatz-Plugin ermöglicht das Ver- und Entschlüsseln von Daten
auf 3 Ebenen: Global, pro Server oder pro Channel.
Das Plugin ist optional, wird jedoch empfohlen: wenn es nicht geladen ist,
kann WeeChat nur UTF-8-Daten lesen und schreiben.
</para>
<para>
Das Zeichensatz-Plugin sollte beim Start von WeeChat automatisch geladen
werden.
Um sicherzustellen, dass das Plugin geladen wurde, versuchen Sie:
"<literal>/charset</literal>".
Wenn der Befehl nicht gefunden wird, laden Sie das Plugin manuell mit dem Befehl:
<screen>/plugin load charset</screen>
Wenn das Plugin nicht gefunden wird, kompilieren Sie WeeChat erneut mit Plugin-
und Zeichensatz-Support
</para>
<para>
Wenn das Zeichensatz-Plugin startet, zeigt es den Terminalzeichensatz
und den internen Zeichensatz an. Der Terminalzeichensatz hängt von
den LOCALE-Einstellungen ab, der interne ist UTF-8.
Zum Beispiel:
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Einstellungen</title>
<itemizedlist>
<listitem>
<para>
Um den globalen Zeichensatz zum Kodieren und Dekodieren festzulegen, benutzen Sie den
"<literal>/setp</literal>" Befehl.
Zum Beispiel:
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
Wenn der Zeichensatz zum Dekodieren nicht gesetzt ist (z.B. beim ersten
Start des Plugins), wird es automatisch auf den Terminalzeichensatz
eingestellt (wenn es nicht UTF-8 ist) oder als Voreinstellung auf
"<literal>ISO-8859-1</literal>" gesetzt.
Der voreingestellte Enkodierungszeichensatz ist leer, so dass in der
Voreinstellung mit dem internen Zeichensatz (UTF-8) enkodiert wird.
</para>
</listitem>
<listitem>
<para>
Um den Serverzeichensatz festzulegen, benutzen Sie den
"<literal>/charset</literal>"-Befehl im Server-Puffer.
Wenn Sie nur einen Zeichensatz vorgeben, wird dieser automatisch
zum Enkodieren und Dekodieren verwendet.
Zum Beispiel:
<screen>/charset ISO-8859-15</screen>
Das ist gleichbedeutend mit:
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
Um den zeichensatz im Channel (oder einem privatem Chat) festzulegen,
müssen Sie den gleichen Befehl wie für den Server benutzen, jedoch in
dem Channel-Puffer (oder Query-Puffer)
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
Wenn Sie Probleme mit den Zeichen oder dem Zeichensatz-Plugin haben:
<itemizedlist>
<listitem>
<para>
überprüfen Sie, ob weechat-curses zu libcursesw gelinkt ist
(Achtung: Wird bei den meisten, jedoch nicht bei allen Distributionen benötigt):
<screen>ldd /pfad/zu/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
überprüfen Sie die Zeichensatz-Zeile im Server-Puffer, dort sollten ISO-XXXXXX
oder UTF-8 für den Terminal-Zeichensatz stehen. Wenn Sie dort ANSI_X3.4-1968
oder andere Werte sehen, sind Ihre LOCALES eventuell falsch eingestellt.
</para>
</listitem>
<listitem>
<para>
Setze die globalen Dekodier-Einstellungen, z.B.:
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secFIFOpipe">
<title>Remote-Schnittstelle (FIFO pipe)</title>
@@ -1287,7 +1215,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<screen>
#!/bin/sh
if [ $# -eq 1 ]; then
for fifo in $(/bin/ls ~/.weechat/weechat_fifo_* 2>/dev/null); do
for fifo in ~/.weechat/weechat_fifo_*
do
echo -e "$1" >$fifo
done
fi
@@ -1853,6 +1782,63 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
</listitem>
</itemizedlist>
</para>
<!-- TRANSLATION NEEDED -->
<para>
To display colored text, there are following codes:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>0x02</entry>
<entry>
bold text
</entry>
</row>
<row>
<entry>0x03 + "xx"</entry>
<entry>
text color "<literal>xx</literal>"
(see <xref linkend="secAPI_get_irc_color" /> for colors)
</entry>
</row>
<row>
<entry>0x03 + "xx,yy"</entry>
<entry>
text color "<literal>xx</literal>"
and background "<literal>yy</literal>"
(see <xref linkend="secAPI_get_irc_color" /> for colors)
</entry>
</row>
<row>
<entry>0x0F</entry>
<entry>
disable color and attributes
</entry>
</row>
<row>
<entry>0x12</entry>
<entry>
reverse video (revert text color with background)
</entry>
</row>
<row>
<entry>0x1F</entry>
<entry>
underlined text
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
Note: the same code (without number for 0x03) may be used to stop
the attribute.
</para>
<para>
Rückgabewert: keiner.
</para>
@@ -1862,6 +1848,10 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
plugin->print (plugin, NULL, NULL, "hello");
plugin->print (plugin, NULL, "#weechat", "hello");
plugin->print (plugin, "freenode", "#weechat", "hello");
plugin->print (plugin, NULL, NULL,
"Test: \x02 Fett \x0F\x03%02d Blau \x03%02d Grün",
plugin->get_irc_color (plugin, "blue"),
plugin->get_irc_color (plugin, "green"));
</screen>
</para>
</section>
@@ -1894,6 +1884,10 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
</listitem>
</itemizedlist>
</para>
<para>
<!-- TRANSLATION NEEDED -->
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Rückgabewert: keiner.
</para>
@@ -2264,6 +2258,15 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
<entry><literal>%-</literal></entry>
<entry>keine Vervollständigung für das Argument</entry>
</row>
<row>
<entry><literal>%*</literal></entry>
<entry>
<!-- TRANSLATION NEEDED -->
repeat last completion for all following arguments
(this code has to be at the end of completion
template, preceded by "|")
</entry>
</row>
<row>
<entry><literal>%a</literal></entry>
<entry>Alias</entry>
@@ -2668,27 +2671,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</listitem>
<listitem>
<para>
<option>event</option> : Ereignis, siehe folgende Tabelle:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Ereignis</entry>
<entry>Beschreibung</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>ein Puffer wurde geöffnet</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>ein Puffer wurde geschlossen</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<option>event</option> : Ereignis (siehe folgende Tabelle)
</para>
</listitem>
<listitem>
@@ -2704,8 +2687,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</command>
</para>
<para>
Argument argc wird auf 1 gesetzt, argv[0] ist die Nummer des Puffers, der
geöffnet oder geschlossen wird.
<!-- TRANSLATION NEEDED -->
Arguments depend on event (see table below).
</para>
</listitem>
<listitem>
@@ -2722,6 +2705,44 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</listitem>
</itemizedlist>
</para>
<!-- TRANSLATION NEEDED -->
<para>
List of events:
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Ereignis</entry>
<entry>Beschreibung</entry>
<entry>Arguments</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>ein Puffer wurde geöffnet</entry>
<entry>
argc = 1, argv = { buffer number }
</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>ein Puffer wurde geschlossen</entry>
<entry>
argc = 1, argv = { buffer number }
</entry>
</row>
<row>
<entry><literal>buffer_move</literal></entry>
<entry>a buffer was moved</entry>
<entry>
argc = 2, argv = { new buffer number, old number }
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
Rückgabewert: Pointer auf den neuen Ereignishandler.
</para>
@@ -4861,6 +4882,117 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
</section>
<section id="secCharset">
<title>Zeichensatz Plugin</title>
<para>
Das Zeichensatz-Plugin ermöglicht das Ver- und Entschlüsseln von Daten
auf 3 Ebenen: Global, pro Server oder pro Channel.
Das Plugin ist optional, wird jedoch empfohlen: wenn es nicht geladen ist,
kann WeeChat nur UTF-8-Daten lesen und schreiben.
</para>
<para>
Das Zeichensatz-Plugin sollte beim Start von WeeChat automatisch geladen
werden.
Um sicherzustellen, dass das Plugin geladen wurde, versuchen Sie:
"<literal>/charset</literal>".
Wenn der Befehl nicht gefunden wird, laden Sie das Plugin manuell mit dem Befehl:
<screen>/plugin load charset</screen>
Wenn das Plugin nicht gefunden wird, kompilieren Sie WeeChat erneut mit Plugin-
und Zeichensatz-Support
</para>
<para>
Wenn das Zeichensatz-Plugin startet, zeigt es den Terminalzeichensatz
und den internen Zeichensatz an. Der Terminalzeichensatz hängt von
den LOCALE-Einstellungen ab, der interne ist UTF-8.
Zum Beispiel:
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Einstellungen</title>
<itemizedlist>
<listitem>
<para>
Um den globalen Zeichensatz zum Kodieren und Dekodieren festzulegen, benutzen Sie den
"<literal>/setp</literal>" Befehl.
Zum Beispiel:
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
Wenn der Zeichensatz zum Dekodieren nicht gesetzt ist (z.B. beim ersten
Start des Plugins), wird es automatisch auf den Terminalzeichensatz
eingestellt (wenn es nicht UTF-8 ist) oder als Voreinstellung auf
"<literal>ISO-8859-1</literal>" gesetzt.
Der voreingestellte Enkodierungszeichensatz ist leer, so dass in der
Voreinstellung mit dem internen Zeichensatz (UTF-8) enkodiert wird.
</para>
</listitem>
<listitem>
<para>
Um den Serverzeichensatz festzulegen, benutzen Sie den
"<literal>/charset</literal>"-Befehl im Server-Puffer.
Wenn Sie nur einen Zeichensatz vorgeben, wird dieser automatisch
zum Enkodieren und Dekodieren verwendet.
Zum Beispiel:
<screen>/charset ISO-8859-15</screen>
Das ist gleichbedeutend mit:
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
Um den zeichensatz im Channel (oder einem privatem Chat) festzulegen,
müssen Sie den gleichen Befehl wie für den Server benutzen, jedoch in
dem Channel-Puffer (oder Query-Puffer)
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
Wenn Sie Probleme mit den Zeichen oder dem Zeichensatz-Plugin haben:
<itemizedlist>
<listitem>
<para>
überprüfen Sie, ob weechat-curses zu libcursesw gelinkt ist
(Achtung: Wird bei den meisten, jedoch nicht bei allen Distributionen benötigt):
<screen>ldd /pfad/zu/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
überprüfen Sie die Zeichensatz-Zeile im Server-Puffer, dort sollten ISO-XXXXXX
oder UTF-8 für den Terminal-Zeichensatz stehen. Wenn Sie dort ANSI_X3.4-1968
oder andere Werte sehen, sind Ihre LOCALES eventuell falsch eingestellt.
</para>
</listitem>
<listitem>
<para>
Setze die globalen Dekodier-Einstellungen, z.B.:
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secScriptsPlugins">
<title>Skript-Plugins</title>
@@ -5222,6 +5354,10 @@ weechat.set_charset("ISO-8859-1")
</listitem>
</itemizedlist>
</para>
<para>
<!-- TRANSLATION NEEDED -->
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Rückgabewert: 1 bei Erfolg, 0 wenn ein Fehler aufgetreten ist
</para>
@@ -5232,6 +5368,7 @@ weechat.set_charset("ISO-8859-1")
weechat::print("message");
weechat::print("message", "#weechat");
weechat::print("message", "#weechat", "freenode");
weechat::print("test: \x0305 rot \x0F normal");
# python
weechat.prnt("message")
@@ -5251,6 +5388,72 @@ weechat.print("message", "#weechat", "freenode")
</para>
</section>
<!-- TRANSLATION NEEDED -->
<section id="secScript_print_server">
<title>print_server</title>
<para>
Perl prototype:
<command>
weechat::print_server(message)
</command>
</para>
<para>
Python prototype:
<command>
weechat.print_server(message)
</command>
</para>
<para>
Ruby prototype:
<command>
Weechat.print_server(message)
</command>
</para>
<para>
Lua prototype:
<command>
weechat.print_server(message)
</command>
</para>
<para>
Display a message on server buffer.
</para>
<para>
Arguments:
<itemizedlist>
<listitem>
<para>
<option>message</option>: message
</para>
</listitem>
</itemizedlist>
</para>
<para>
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Return value: 1 if success, 0 if an error occurred.
</para>
<para>
Examples:
<screen>
# perl
weechat::print_server("message");
weechat::print_server("test: \x0305 rot \x0F normal");
# python
weechat.print_server("message")
# ruby
Weechat.print_server("message")
-- lua
weechat.print_server("message")
</screen>
</para>
</section>
<section id="secScript_print_infobar">
<title>print_infobar</title>
+71 -38
View File
@@ -22,15 +22,28 @@ Argumente: Argumente f
<programlisting>
Puffer verwalten
Aktion: Pufferaktion:
move: Puffer in der Liste bewegen (kann auch relativ sein, wie -1)
close: Puffer schließen (eine Part-Message kann optional angegeben werden)
list: alle offenen Puffer auflisten (Standardaktion)
notify: Notify-Level für Puffer festlegen (0=nie, 1=bei hervorgehobenen Nachrichten, 2=1+persönliche Nachricht, 3=2+join/part)
(wenn der Befehl in einem Server Puffer ausgeführt wird, setzt er den Default-Notify-Level für den ganzen Server)
Server
Channel: gehe zum Puffer mit Servernamen oder Channelnamen
Nummer: gehe zu Puffer mit dieser Nummer
action: action to do:
move: move buffer in the list (may be relative, for example -1)
close: close buffer (optional arg is part message, for a channel)
list: list open buffers (no parameter implies this list)
notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)
(when executed on server buffer, this sets default notify level for whole server)
scroll: scroll in history (may be relative, and may end by a letter: s=sec, m=min, h=hour, d=day, M=month, y=year); if there is only letter, then scroll to beginning of this item
number: jump to buffer by number
server,
channel: jump to buffer by server and/or channel name
Examples:
move buffer: /buffer move 5
close buffer: /buffer close this is part msg
set notify: /buffer notify 2
scroll 1 day up: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
scroll to beginning
of this day: /buffer scroll d
scroll 15 min down: /buffer scroll +15m
scroll 20 msgs up: /buffer scroll -20
jump to #weechat: /buffer #weechat
</programlisting>
<command>builtin Befehl</command>
@@ -41,7 +54,7 @@ Befehl: auszuf
</programlisting>
<command>clear [-all | Nummer]</command>
<command>clear [-all | number [number ...]]</command>
<programlisting>
Fenster leeren
@@ -49,12 +62,17 @@ Fenster leeren
Nummer: lösche den Puffer mit der angegebenen Nummer
</programlisting>
<command>connect [-all | Servername [Servername ...]]</command>
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
mit Server verbinden
-all: verbinde mit allen Servern
servername: Servername, mit dem verbunden werden soll
-all: connect to all servers
servername: internal server name to connect
-nojoin: do not join any channel (even if autojoin is enabled on server)
hostname: hostname to connect, creating temporary server
port: port for server (integer, default is 6667)
ipv6: use IPv6 protocol
ssl: use SSL protocol
</programlisting>
<command>disconnect [-all | Servername [Servername ...]]</command>
@@ -74,12 +92,13 @@ Nickname: Empf
Datei: zu versendende (lokal vorliegende) Datei
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
Debugging-Nachricht ausgeben
dump: Speicherabbild im WeeChat-Logfile ablegen (wie nach einem Programmabsturz)
windows: zeigt Fensterdaten an
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
</programlisting>
<command>help [Befehl]</command>
@@ -137,29 +156,13 @@ autoload: lade automatisch alle Plugins im System- oder Benutzerverzeichnis
Ohne Argument, listet /plugin alle geladenen Plugins auf.
</programlisting>
<command>reconnect [-all | Servername [Servername ...]]</command>
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
<programlisting>
mit einem Server oder mehreren Servern neu verbinden
-all: Verbinde mit allen Servern neu
servername: Servername, mit dem verbunden werden soll
</programlisting>
<command>server [Servername] | [Servername Hostname Port [-auto | -noauto] [-ipv6] [-ssl] [-pwd Passwort] [-nicks Nick1 Nick2 Nick3] [-username Benutzername] [-realname Name] [-command Befehl] [-autojoin Channel[,Channel]] ] | [del Servername]</command>
<programlisting>
Auflisten, Hinzufügen oder Entfernen von Servern
Servername: anzuzeigender Servername
Hostname: Name oder IP-Adresse des Servers
Port: Port des Servers
ipv6: IPv6 benutzen
ssl: SSL benutzen
Passwort: Serverpasswort
Nick1: erster Nickname
Nick2: zweiter Nickname
Nick3: dritter Nicname
Benutzername: Benutzername
Realname: voller Name des Benutzers
-all: reconnect to all servers
servername: server name to reconnect
-nojoin: do not join any channel (even if autojoin is enabled on server)
</programlisting>
<command>save [Datei]</command>
@@ -168,6 +171,34 @@ Konfiguration abspeichern
Datei: Name der zu speichernden Konfigurationsdatei
</programlisting>
<command>server [list [servername]] | [listfull [servername]] | [add servername hostname [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [copy servername newservername] | [rename servername newservername] | [keep servername] | [del servername]</command>
<programlisting>
Auflisten, Hinzufügen oder Entfernen von Servern
list: list servers (no parameter implies this list)
listfull: list servers with detailed info for each server
add: create a new server
servername: server name, for internal and display use
hostname: name or IP address of server
port: port for server (integer, default is 6667)
temp: create temporary server (not saved in config file)
auto: automatically connect to server when WeeChat starts
noauto: do not connect to server when WeeChat starts (default)
ipv6: use IPv6 protocol
ssl: use SSL protocol
password: password for server
nick1: first nick for server
nick2: alternate nick for server
nick3: second alternate nick for server
username: user name
realname: real name of user
copy: duplicate a server
rename: rename a server
keep: keep server in config file (for temporary servers only)
del: delete a server
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
</programlisting>
<command>set [Option [ = Wert]]</command>
<programlisting>
@@ -211,11 +242,13 @@ Bei jedem Argument steht '*' f
Ohne Argumente listet /unignore alle definierten /ignore-Regeln auf.
</programlisting>
<command>upgrade</command>
<command>upgrade [path_to_binary]</command>
<programlisting>
aktualisiert WeeChat ohne die Verbindung zum Server zu trennen
Dieser Befehl wird auf dem Weechat-Binary ausgeführt, daher sollte dieses kompiliert oder mit einem Paketmanager installiert sein, bevor der Befehl ausgeführt wird.
path_to_binary: path to WeeChat binary (default is current binary)
This command run again a WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
</programlisting>
<command>uptime [-o]</command>
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = en
+40 -5
View File
@@ -108,7 +108,7 @@
<entry>integer</entry>
<entry>between 0 and 100</entry>
<entry>0</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and &gt; 0, then size is fixed))</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min = max and &gt; 0, then size is fixed))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
@@ -180,6 +180,13 @@
<entry>20</entry>
<entry>Max size for aligning nick and other messages (should be &gt;= to look_align_size)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>integer</entry>
<entry>between -1 and 64</entry>
<entry>-1</entry>
<entry>Offset for aligning lines of messages (except first lines), default is -1 (align after nick), a null or positive value is offset after beginning of line</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>string</entry>
@@ -257,6 +264,13 @@
<entry>0</entry>
<entry>Max length of names in hotlist (0 = no limit)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>string</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Hotlist sort type (group_time_asc (default), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>boolean</entry>
@@ -273,8 +287,8 @@
</row>
<row>
<entry><option>look_read_marker</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>char</entry>
<entry>any char</entry>
<entry>' '</entry>
<entry>Use a marker on servers/channels to show first unread line</entry>
</row>
@@ -285,6 +299,13 @@
<entry>'[%n(%m)] '</entry>
<entry>Format for input prompt ('%c' is replaced by channel or server, '%n' by nick and '%m' by nick modes)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>integer</entry>
<entry>between 0 and 2147483647</entry>
<entry>3</entry>
<entry>Max number of lines for paste without asking user (0 = disable this feature)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>boolean</entry>
@@ -565,6 +586,13 @@
<entry>'red'</entry>
<entry>Color for text not found</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'lightgreen'</entry>
<entry>Color for actions in input window</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>color</entry>
@@ -621,6 +649,13 @@
<entry>'yellow'</entry>
<entry>Color for voice symbol</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'blue'</entry>
<entry>Color for user symbol</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>color</entry>
@@ -948,7 +983,7 @@
<entry>boolean</entry>
<entry>'on' or 'off'</entry>
<entry>'on'</entry>
<entry>Allow user to send colors with special codes (%B=bold, %Cxx,yy=color, %U=underline, %R=reverse)</entry>
<entry>Allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, ^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
@@ -1226,7 +1261,7 @@
<row>
<entry><option>server_command_delay</option></entry>
<entry>integer</entry>
<entry>between 0 and 5</entry>
<entry>between 0 and 3600</entry>
<entry>0</entry>
<entry>Delay (in seconds) after command was executed (example: give some time for authentication)</entry>
</row>
+8
View File
@@ -157,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>jump to last buffer</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>jump to previous buffer</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>jump to server buffer</entry>
@@ -181,6 +185,10 @@
<entry><literal>scroll_unread</literal></entry>
<entry>scroll to first unread line in buffer</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>set unread marker on all buffers</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>clear hotlist</entry>
+350 -159
View File
@@ -8,7 +8,7 @@ Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
This manual is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This manual is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<bookinfo>
<title>WeeChat 0.2.5 - User guide</title>
<title>WeeChat 0.2.6 - User guide</title>
<subtitle>Fast, light and extensible IRC client</subtitle>
<author>
@@ -56,7 +55,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<para>
This manual is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
</para>
<para>
@@ -67,9 +66,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</para>
<para>
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
</para>
</legalnotice>
@@ -461,13 +458,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>Left arrow</entry>
<entry>Left arrow / Ctrl + B</entry>
<entry>
Go to previous char in command line
</entry>
</row>
<row>
<entry>Right arrow</entry>
<entry>Right arrow / Ctrl + F</entry>
<entry>
Go to next char in command line
</entry>
@@ -490,6 +487,36 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Go to the beginning of command line
</entry>
</row>
<row>
<entry>Ctrl + C then B</entry>
<entry>
Insert code for bold text.
</entry>
</row>
<row>
<entry>Ctrl + C then C</entry>
<entry>
Insert code for colored text.
</entry>
</row>
<row>
<entry>Ctrl + C then O</entry>
<entry>
Insert code for color reset.
</entry>
</row>
<row>
<entry>Ctrl + C then R</entry>
<entry>
Insert code for reverse color.
</entry>
</row>
<row>
<entry>Ctrl + C then U</entry>
<entry>
Insert code for underlined text.
</entry>
</row>
<row>
<entry>End / Ctrl + E</entry>
<entry>
@@ -515,6 +542,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
(two times: search exact text)
</entry>
</row>
<row>
<entry>Ctrl + S then Ctrl + U</entry>
<entry>
Set unread marker on all buffers
</entry>
</row>
<row>
<entry>Ctrl + T</entry>
<entry>
@@ -546,7 +579,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>Delete</entry>
<entry>Delete / Ctrl + D</entry>
<entry>
Delete next char in command line
</entry>
@@ -695,6 +728,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Switch to last buffer
</entry>
</row>
<row>
<entry>Alt + J then Alt + P</entry>
<entry>
Switch to buffer previously displayed
</entry>
</row>
<row>
<entry>Alt + J then Alt + R</entry>
<entry>
@@ -807,7 +846,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<para>
If option for sending IRC colors ("<literal>irc_colors_send</literal>")
is enabled, you can use color codes and attributes, as follow:
is enabled, you can use color codes and attributes, as follow (press
Ctrl-C then following letter, with optional value):
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -818,20 +858,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>%B</entry>
<entry>^Cb</entry>
<entry>
bold text
</entry>
</row>
<row>
<entry>%Cxx</entry>
<entry>^Ccxx</entry>
<entry>
text color "<literal>xx</literal>"
(see colors table below)
</entry>
</row>
<row>
<entry>%Cxx,yy</entry>
<entry>^Ccxx,yy</entry>
<entry>
text color "<literal>xx</literal>"
and background "<literal>yy</literal>"
@@ -839,38 +879,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>%O</entry>
<entry>^Co</entry>
<entry>
disable color and attributes
</entry>
</row>
<row>
<entry>%R</entry>
<entry>^Cr</entry>
<entry>
reverse video (revert text color with background)
</entry>
</row>
<row>
<entry>%U</entry>
<entry>^Cu</entry>
<entry>
underlined text
</entry>
</row>
<row>
<entry>%%</entry>
<entry>
display one "<literal>%</literal>"
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
Note: the same code (without number for %C) may be used to stop the
Note: the same code (without number for ^Cc) may be used to stop the
attribute.
</para>
<para>
Color codes for %C are:
Color codes for ^Cc are:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -953,7 +987,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Example: display of "<literal>hello everybody!</literal>" with
"<literal>hello</literal>" in light blue bold, and
"<literal>everybody</literal>" in light red underlined:
<screen><userinput>%C12%Bhello%B%C04%U everybody%U%C!</userinput></screen>
<screen><userinput>^Cc12^Cbhello^Cb^Cc04^Cu everybody^Cu^Cc!</userinput></screen>
</para>
</section>
@@ -1111,114 +1145,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</section>
<section id="secCharset">
<title>Charset plugin</title>
<para>
Charset plugin lets you encode or decode data using charsets, with 3
levels: global, by server, or by channel.
This plugin is optional, but recommended: if it's not loaded, WeeChat
can only read/write UTF-8 data.
</para>
<para>
Charset plugin should be autoloaded by WeeChat at startup.
To be sure plugin is loaded, try:
"<literal>/charset</literal>".
If command is not found, then load plugin with command:
<screen>/plugin load charset</screen>
If plugin is not found, then you should compile again WeeChat with
plugins and Charset support.
</para>
<para>
When Charset plugin starts, it displays terminal and internal charsets.
Terminal charset depends on your locale, and internal is UTF-8.
For example :
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Settings</title>
<itemizedlist>
<listitem>
<para>
To set global decode and encode charsets, use
"<literal>/setp</literal>" command.
For example:
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
If global decode charset is not set (for example during first
load of Charset plugin), it will be automatically set to terminal
charset (if it's different from UTF-8), or by default to
"<literal>ISO-8859-1</literal>".
Default encode value is empty, so it sends by default with
internal charset (UTF-8).
</para>
</listitem>
<listitem>
<para>
To set server charset, use "<literal>/charset</literal>" command
on server buffer.
If you give only charset, then it will set "decode" and "encode"
values.
For example:
<screen>/charset ISO-8859-15</screen>
It's equivalent to:
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
To set channel (or private) charset, use same commands as server,
but on channel (or private) buffer.
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
If you have problems with chars or accents using Charset plugin:
<itemizedlist>
<listitem>
<para>
check that weechat-curses is linked to libncursesw (warning:
needed on most distributions but not all) :
<screen>ldd /path/to/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
check charset line (on server buffer), you should see
ISO-XXXXXX or UTF-8 for terminal charset. If you see
ANSI_X3.4-1968 or other values, probably your locale is wrong.
</para>
</listitem>
<listitem>
<para>
setup global decode value, for example:
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secFIFOpipe">
<title>FIFO pipe</title>
@@ -1281,7 +1207,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<screen>
#!/bin/sh
if [ $# -eq 1 ]; then
for fifo in $(/bin/ls ~/.weechat/weechat_fifo_* 2>/dev/null); do
for fifo in ~/.weechat/weechat_fifo_*
do
echo -e "$1" >$fifo
done
fi
@@ -1853,6 +1780,62 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
</listitem>
</itemizedlist>
</para>
<para>
To display colored text, there are following codes:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>0x02</entry>
<entry>
bold text
</entry>
</row>
<row>
<entry>0x03 + "xx"</entry>
<entry>
text color "<literal>xx</literal>"
(see <xref linkend="secAPI_get_irc_color" /> for colors)
</entry>
</row>
<row>
<entry>0x03 + "xx,yy"</entry>
<entry>
text color "<literal>xx</literal>"
and background "<literal>yy</literal>"
(see <xref linkend="secAPI_get_irc_color" /> for colors)
</entry>
</row>
<row>
<entry>0x0F</entry>
<entry>
disable color and attributes
</entry>
</row>
<row>
<entry>0x12</entry>
<entry>
reverse video (revert text color with background)
</entry>
</row>
<row>
<entry>0x1F</entry>
<entry>
underlined text
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
Note: the same code (without number for 0x03) may be used to stop
the attribute.
</para>
<para>
Return value: none.
</para>
@@ -1862,6 +1845,10 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
plugin->print (plugin, NULL, NULL, "hello");
plugin->print (plugin, NULL, "#weechat", "hello");
plugin->print (plugin, "freenode", "#weechat", "hello");
plugin->print (plugin, NULL, NULL,
"test: \x02 bold \x0F\x03%02d blue \x03%02d green",
plugin->get_irc_color (plugin, "blue"),
plugin->get_irc_color (plugin, "green"));
</screen>
</para>
</section>
@@ -1894,6 +1881,9 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
</listitem>
</itemizedlist>
</para>
<para>
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Return value: none.
</para>
@@ -2278,6 +2268,14 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
<entry><literal>%-</literal></entry>
<entry>no completion for argument</entry>
</row>
<row>
<entry><literal>%*</literal></entry>
<entry>
repeat last completion for all following arguments
(this code has to be at the end of completion
template, preceded by "|")
</entry>
</row>
<row>
<entry><literal>%a</literal></entry>
<entry>alias</entry>
@@ -2692,27 +2690,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</listitem>
<listitem>
<para>
<option>event</option> : event, see table below:
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Event</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>a buffer was open</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>a buffer was closed</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<option>event</option> : event (see table below)
</para>
</listitem>
<listitem>
@@ -2728,8 +2706,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</command>
</para>
<para>
Argument argc is set to 1, argv[0] is number of buffer
open/closed.
Arguments depend on event (see table below).
</para>
</listitem>
<listitem>
@@ -2746,6 +2723,43 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;my_keyb);
</listitem>
</itemizedlist>
</para>
<para>
List of events:
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Event</entry>
<entry>Description</entry>
<entry>Arguments</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>a buffer was open</entry>
<entry>
argc = 1, argv = { buffer number }
</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>a buffer was closed</entry>
<entry>
argc = 1, argv = { buffer number }
</entry>
</row>
<row>
<entry><literal>buffer_move</literal></entry>
<entry>a buffer was moved</entry>
<entry>
argc = 2, argv = { new buffer number, old number }
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
Return value: pointer to new event handler.
</para>
@@ -4896,6 +4910,114 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
</section>
<section id="secCharset">
<title>Charset plugin</title>
<para>
Charset plugin lets you encode or decode data using charsets, with 3
levels: global, by server, or by channel.
This plugin is optional, but recommended: if it's not loaded, WeeChat
can only read/write UTF-8 data.
</para>
<para>
Charset plugin should be autoloaded by WeeChat at startup.
To be sure plugin is loaded, try:
"<literal>/charset</literal>".
If command is not found, then load plugin with command:
<screen>/plugin load charset</screen>
If plugin is not found, then you should compile again WeeChat with
plugins and Charset support.
</para>
<para>
When Charset plugin starts, it displays terminal and internal charsets.
Terminal charset depends on your locale, and internal is UTF-8.
For example :
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Settings</title>
<itemizedlist>
<listitem>
<para>
To set global decode and encode charsets, use
"<literal>/setp</literal>" command.
For example:
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
If global decode charset is not set (for example during first
load of Charset plugin), it will be automatically set to terminal
charset (if it's different from UTF-8), or by default to
"<literal>ISO-8859-1</literal>".
Default encode value is empty, so it sends by default with
internal charset (UTF-8).
</para>
</listitem>
<listitem>
<para>
To set server charset, use "<literal>/charset</literal>" command
on server buffer.
If you give only charset, then it will set "decode" and "encode"
values.
For example:
<screen>/charset ISO-8859-15</screen>
It's equivalent to:
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
To set channel (or private) charset, use same commands as server,
but on channel (or private) buffer.
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
If you have problems with chars or accents using Charset plugin:
<itemizedlist>
<listitem>
<para>
check that weechat-curses is linked to libncursesw (warning:
needed on most distributions but not all) :
<screen>ldd /path/to/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
check charset line (on server buffer), you should see
ISO-XXXXXX or UTF-8 for terminal charset. If you see
ANSI_X3.4-1968 or other values, probably your locale is wrong.
</para>
</listitem>
<listitem>
<para>
setup global decode value, for example:
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secScriptsPlugins">
<title>Scripts plugins</title>
@@ -5256,6 +5378,9 @@ weechat.set_charset("ISO-8859-1")
</listitem>
</itemizedlist>
</para>
<para>
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Return value: 1 if success, 0 if an error occurred.
</para>
@@ -5266,6 +5391,7 @@ weechat.set_charset("ISO-8859-1")
weechat::print("message");
weechat::print("message", "#weechat");
weechat::print("message", "#weechat", "freenode");
weechat::print("test: \x0305 red \x0F normal");
# python
weechat.prnt("message")
@@ -5285,6 +5411,71 @@ weechat.print("message", "#weechat", "freenode")
</para>
</section>
<section id="secScript_print_server">
<title>print_server</title>
<para>
Perl prototype:
<command>
weechat::print_server(message)
</command>
</para>
<para>
Python prototype:
<command>
weechat.print_server(message)
</command>
</para>
<para>
Ruby prototype:
<command>
Weechat.print_server(message)
</command>
</para>
<para>
Lua prototype:
<command>
weechat.print_server(message)
</command>
</para>
<para>
Display a message on server buffer.
</para>
<para>
Arguments:
<itemizedlist>
<listitem>
<para>
<option>message</option>: message
</para>
</listitem>
</itemizedlist>
</para>
<para>
To display colored text, see <xref linkend="secAPI_print" />.
</para>
<para>
Return value: 1 if success, 0 if an error occurred.
</para>
<para>
Examples:
<screen>
# perl
weechat::print_server("message");
weechat::print_server("test: \x0305 red \x0F normal");
# python
weechat.print_server("message")
# ruby
Weechat.print_server("message")
-- lua
weechat.print_server("message")
</screen>
</para>
</section>
<section id="secScript_print_infobar">
<title>print_infobar</title>
+50 -17
View File
@@ -28,9 +28,22 @@ manage buffers
list: list open buffers (no parameter implies this list)
notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)
(when executed on server buffer, this sets default notify level for whole server)
scroll: scroll in history (may be relative, and may end by a letter: s=sec, m=min, h=hour, d=day, M=month, y=year); if there is only letter, then scroll to beginning of this item
number: jump to buffer by number
server,
channel: jump to buffer by server and/or channel name
number: jump to buffer by number
Examples:
move buffer: /buffer move 5
close buffer: /buffer close this is part msg
set notify: /buffer notify 2
scroll 1 day up: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
scroll to beginning
of this day: /buffer scroll d
scroll 15 min down: /buffer scroll +15m
scroll 20 msgs up: /buffer scroll -20
jump to #weechat: /buffer #weechat
</programlisting>
<command>builtin command</command>
@@ -41,7 +54,7 @@ command: command to execute (a '/' is automatically added if not found at beginn
</programlisting>
<command>clear [-all | number]</command>
<command>clear [-all | number [number ...]]</command>
<programlisting>
clear window(s)
@@ -49,12 +62,17 @@ clear window(s)
number: clear buffer by number
</programlisting>
<command>connect [-all | servername [servername ...]]</command>
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
connect to server(s)
-all: connect to all servers
servername: server name to connect
servername: internal server name to connect
-nojoin: do not join any channel (even if autojoin is enabled on server)
hostname: hostname to connect, creating temporary server
port: port for server (integer, default is 6667)
ipv6: use IPv6 protocol
ssl: use SSL protocol
</programlisting>
<command>disconnect [-all | servername [servername ...]]</command>
@@ -74,11 +92,12 @@ nickname: nickname to send file or chat
file: filename (on local host)
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
print debug messages
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
</programlisting>
@@ -136,21 +155,35 @@ autoload: autoload plugins in system or user directory
Without argument, /plugin command lists loaded plugins.
</programlisting>
<command>reconnect [-all | servername [servername ...]]</command>
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
<programlisting>
reconnect to server(s)
-all: reconnect to all servers
servername: server name to reconnect
-nojoin: do not join any channel (even if autojoin is enabled on server)
</programlisting>
<command>server [servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [del servername]</command>
<command>save [file]</command>
<programlisting>
save config to disk
file: filename for writing config
</programlisting>
<command>server [list [servername]] | [listfull [servername]] | [add servername hostname [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [copy servername newservername] | [rename servername newservername] | [keep servername] | [del servername]</command>
<programlisting>
list, add or remove servers
list: list servers (no parameter implies this list)
listfull: list servers with detailed info for each server
add: create a new server
servername: server name, for internal and display use
hostname: name or IP address of server
port: port for server (integer)
port: port for server (integer, default is 6667)
temp: create temporary server (not saved in config file)
auto: automatically connect to server when WeeChat starts
noauto: do not connect to server when WeeChat starts (default)
ipv6: use IPv6 protocol
ssl: use SSL protocol
password: password for server
@@ -159,13 +192,11 @@ servername: server name, for internal and display use
nick3: second alternate nick for server
username: user name
realname: real name of user
</programlisting>
<command>save [file]</command>
<programlisting>
save config to disk
file: filename for writing config
copy: duplicate a server
rename: rename a server
keep: keep server in config file (for temporary servers only)
del: delete a server
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
</programlisting>
<command>set [option [ = value]]</command>
@@ -210,11 +241,13 @@ For each argument, '*' means all.
Without argument, /unignore command lists all defined ignore.
</programlisting>
<command>upgrade</command>
<command>upgrade [path_to_binary]</command>
<programlisting>
upgrade WeeChat without disconnecting from servers
This command run again WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
path_to_binary: path to WeeChat binary (default is current binary)
This command run again a WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
</programlisting>
<command>uptime [-o]</command>
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = fr
+40 -5
View File
@@ -108,7 +108,7 @@
<entry>entier</entry>
<entry>entre 0 et 100</entry>
<entry>0</entry>
<entry>Taille maximum pour la fenêtre des pseudos (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et &gt; 0, alors la taille est fixe))</entry>
<entry>Taille maximum pour la fenêtre des pseudos (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min = max et &gt; 0, alors la taille est fixe))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
@@ -180,6 +180,13 @@
<entry>20</entry>
<entry>Taille maximum pour l'alignement des pseudos et autres messages (doit être &gt;= à look_align_size)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>entier</entry>
<entry>entre -1 et 64</entry>
<entry>-1</entry>
<entry>Décalage pour aligner les lignes des messages (exceptées les premières lignes), par défaut -1 (aligner après le pseudo), une valeur nulle ou positive est le décalage après le début de la ligne</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>chaîne</entry>
@@ -257,6 +264,13 @@
<entry>0</entry>
<entry>Nombre maximum des noms dans la liste d'activité (0 = pas de limite)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>chaîne</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Type de tri pour la liste d'activité (group_time_asc (par défaut), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>booléen</entry>
@@ -273,8 +287,8 @@
</row>
<row>
<entry><option>look_read_marker</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>caractère</entry>
<entry>tout caractère</entry>
<entry>' '</entry>
<entry>Utiliser un marqueur sur les serveurs/canaux pour montrer la première ligne non lue</entry>
</row>
@@ -285,6 +299,13 @@
<entry>'[%n(%m)] '</entry>
<entry>Format pour l'invite de la zone de saisie ('%c' est remplacé par le canal ou serveur, '%n' par le pseudo et '%m' par les modes du pseudo)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>entier</entry>
<entry>entre 0 et 2147483647</entry>
<entry>3</entry>
<entry>Nombre maximum de lignes pour la détection de collage sans demander à l'utilisateur (0 = désactiver cette fonctionnalité)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>booléen</entry>
@@ -565,6 +586,13 @@
<entry>'red'</entry>
<entry>Couleur pour le texte non trouvé</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'lightgreen'</entry>
<entry>Couleur pour les actions dans la fenêtre de saisie</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>couleur</entry>
@@ -621,6 +649,13 @@
<entry>'yellow'</entry>
<entry>Couleur pour le symbole voix</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'blue'</entry>
<entry>Couleur pour le symbole utilisateur</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>couleur</entry>
@@ -948,7 +983,7 @@
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Autorise l'utilisateur à envoyer des couleurs avec des codes spéciaux (%B=gras, %Cxx,yy=couleur, %U=souligné, %R=inversé)</entry>
<entry>Autorise l'utilisateur à envoyer des couleurs avec des codes spéciaux (^Cb=gras, ^Cxx=couleur, ^Ccxx,yy=couleur+fond, ^Cu=souligné, ^Cr=inversé)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
@@ -1226,7 +1261,7 @@
<row>
<entry><option>server_command_delay</option></entry>
<entry>entier</entry>
<entry>entre 0 et 5</entry>
<entry>entre 0 et 3600</entry>
<entry>0</entry>
<entry>Délai (en secondes) après exécution de la commande (exemple: donner du temps pour l'authentification)</entry>
</row>
+8
View File
@@ -157,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>sauter au dernier tampon</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>sauter au tampon précédent</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>sauter au tampon du serveur</entry>
@@ -181,6 +185,10 @@
<entry><literal>scroll_unread</literal></entry>
<entry>faire défiler jusqu'à la première ligne non lue du tampon</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>positionner le marqueur de données non lues sur tous les tampons</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>effacer la liste d'activité</entry>
+370 -170
View File
@@ -8,7 +8,7 @@ Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
This manual is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This manual is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<bookinfo>
<title>WeeChat 0.2.5 - Guide utilisateur</title>
<title>WeeChat 0.2.6 - Guide utilisateur</title>
<subtitle>Client IRC rapide, léger et extensible</subtitle>
<author>
@@ -56,7 +55,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<para>
This manual is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
</para>
<para>
@@ -67,9 +66,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</para>
<para>
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
</para>
</legalnotice>
@@ -470,13 +467,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>Flèche gauche</entry>
<entry>Flèche gauche / Ctrl + B</entry>
<entry>
Aller au caractère précédent sur la ligne de commande
</entry>
</row>
<row>
<entry>Flèche droite</entry>
<entry>Flèche droite / Ctrl + F</entry>
<entry>
Aller au caractère suivant sur la ligne de commande
</entry>
@@ -499,6 +496,36 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Aller au début de la ligne de commande
</entry>
</row>
<row>
<entry>Ctrl + C puis B</entry>
<entry>
Insérer le code pour mettre le texte en gras.
</entry>
</row>
<row>
<entry>Ctrl + C puis C</entry>
<entry>
Insérer le code pour écrire en couleur.
</entry>
</row>
<row>
<entry>Ctrl + C puis O</entry>
<entry>
Insérer le code pour réinitaliser la couleur.
</entry>
</row>
<row>
<entry>Ctrl + C puis R</entry>
<entry>
Insérer le code pour écrire en couleur inversée.
</entry>
</row>
<row>
<entry>Ctrl + C puis U</entry>
<entry>
Insérer le code pour écrire en souligné.
</entry>
</row>
<row>
<entry>End / Ctrl + E</entry>
<entry>
@@ -524,6 +551,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
(deux appuis successifs pour rechercher du texte exact)
</entry>
</row>
<row>
<entry>Ctrl + S puis Ctrl + U</entry>
<entry>
Positionner le marqueur de données non lues sur tous les
tampons
</entry>
</row>
<row>
<entry>Ctrl + T</entry>
<entry>
@@ -555,7 +589,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>Delete</entry>
<entry>Delete / Ctrl + D</entry>
<entry>
Effacer le caractère suivant sur la ligne de commande
</entry>
@@ -706,6 +740,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sauter au dernier tampon
</entry>
</row>
<row>
<entry>Alt + J puis Alt + P</entry>
<entry>
Sauter au tampon affiché précédemment
</entry>
</row>
<row>
<entry>Alt + J puis Alt + R</entry>
<entry>
@@ -821,7 +861,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<para>
Si l'option d'envoi des couleurs IRC
("<literal>irc_colors_send</literal>") est activée, il est possible
d'utiliser des codes couleur et attributs comme suit :
d'utiliser des codes couleur et attributs comme suit (appuyer sur Ctrl-C
puis la lettre qui suit et éventuellement une valeur) :
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -832,20 +873,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</thead>
<tbody>
<row>
<entry>%B</entry>
<entry>^Cb</entry>
<entry>
texte gras
</entry>
</row>
<row>
<entry>%Cxx</entry>
<entry>^Ccxx</entry>
<entry>
couleur du texte "<literal>xx</literal>"
(voir le tableau des couleurs ci-dessous)
</entry>
</row>
<row>
<entry>%Cxx,yy</entry>
<entry>^Ccxx,yy</entry>
<entry>
couleur du texte "<literal>xx</literal>"
et du fond "<literal>yy</literal>"
@@ -853,38 +894,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</entry>
</row>
<row>
<entry>%O</entry>
<entry>^Co</entry>
<entry>
désactiver la couleur et tous les attributs
</entry>
</row>
<row>
<entry>%R</entry>
<entry>^Cr</entry>
<entry>
vidéo inverse (inversion de la couleur d'écriture et du fond)
</entry>
</row>
<row>
<entry>%U</entry>
<entry>^Cu</entry>
<entry>
texte souligné
</entry>
</row>
<row>
<entry>%%</entry>
<entry>
afficher un seul "<literal>%</literal>"
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
NB: le même code (sans le numéro pour %C) peut être utilisé pour stopper
NB: le même code (sans le numéro pour ^Cc) peut être utilisé pour stopper
l'attribut défini.
</para>
<para>
Les codes couleur pour %C sont :
Les codes couleur pour ^Cc sont :
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
@@ -967,7 +1002,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Exemple : affichage de "<literal>bonjour tout le monde !</literal>"
avec "<literal>bonjour</literal>" en bleu clair gras, et
"<literal>tout le monde</literal>" en rouge clair souligné :
<screen><userinput>%C12%Bbonjour%B%C04%U tout le monde%U%C !</userinput></screen>
<screen><userinput>^Cc12^Cbbonjour^Cb^Cc04^Cu tout le monde^Cu^Cc !</userinput></screen>
</para>
</section>
@@ -1124,124 +1159,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</para>
</section>
<section id="secCharset">
<title>Extension Charset</title>
<para>
L'extension Charset vous permet d'encoder et décoder les données en
utilisant un jeu de caractères, avec 3 niveaux : global, par serveur,
ou par canal.
Cette extension est facultative, mais recommandée : si elle n'est pas
chargée, WeeChat pourra uniquement lire/écrire des données UTF-8.
</para>
<para>
L'extension Charset devrait être automatiquement chargée par WeeChat
au démarrage.
Pour s'assurer que l'extension est bien chargée, essayez :
"<literal>/charset</literal>".
Si la commande n'est pas trouvée, alors chargez l'extension avec la
commande :
<screen>/plugin load charset</screen>
Si l'extension n'est pas trouvée, alors vous devriez recompiler
WeeChat avec les extensions et le support de Charset.
</para>
<para>
Lorsque l'extension Charset démarre, elle affiche le jeu de caractères
du terminal et l'interne.
Le jeu de caractères du terminal dépend de votre locale, et l'interne
est UTF-8.
Par exemple :
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Configuration</title>
<itemizedlist>
<listitem>
<para>
Pour modifier les jeux de caractères de décodage et d'encodage
globaux, utilisez la commande "<literal>/setp</literal>".
Par exemple :
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
Si le jeu de caractères de décodage global n'est pas renseigné
(par exemple pendant le premier chargement de Charset), il sera
renseigné automatiquement avec le jeu de caractères du terminal
(s'il est différent de UTF-8) ou par défaut à
"<literal>ISO-8859-1</literal>".
La valeur d'encodage par défaut est vide, donc WeeChat envoie par
défaut avec le jeu de caractères interne (UTF-8).
</para>
</listitem>
<listitem>
<para>
Pour modifier le jeu de caractères d'un serveur, utilisez la
commande "<literal>/charset</literal>" sur le tampon serveur.
Si vous donnez seulement le jeu de caractères, alors vous
modifiez en même temps les valeurs de décodage et d'encodage.
Par exemple :
<screen>/charset ISO-8859-15</screen>
Ce qui est équivalent à :
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
Pour modifier le jeu de caractères d'un canal (ou d'une
conversation privée), utilisez la même commande que pour le
serveur, mais sur le tampon du canal (ou du privé).
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
Si vous avez des problèmes avec certains caractères ou les accents en
utilisant l'extension Charset :
<itemizedlist>
<listitem>
<para>
vérifiez que weechat-curses est lié avec libncursesw
(attention : nécessaire sur beaucoup de distributions, mais pas
toutes) :
<screen>ldd /chemin/vers/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
vérifiez la ligne charset (sur le tampon serveur), vous devriez
voir ISO-XXXXXX ou UTF-8 pour le charset du terminal. Si vous
voyez ANSI_X3.4-1968 ou d'autres valeurs, votre locale est
probablement erronée.
</para>
</listitem>
<listitem>
<para>
affectez la valeur pour le décodage global, par exemple :
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secTubeFIFO">
<title>Tube FIFO</title>
@@ -1307,7 +1224,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<screen>
#!/bin/sh
if [ $# -eq 1 ]; then
for fifo in $(/bin/ls ~/.weechat/weechat_fifo_* 2>/dev/null); do
for fifo in ~/.weechat/weechat_fifo_*
do
echo -e "$1" >$fifo
done
fi
@@ -1900,6 +1818,65 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
</listitem>
</itemizedlist>
</para>
<para>
Pour afficher du texte en couleur, il faut utiliser les codes
suivants :
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>0x02</entry>
<entry>
texte gras
</entry>
</row>
<row>
<entry>0x03 + "xx"</entry>
<entry>
couleur du texte "<literal>xx</literal>"
(voir <xref linkend="secAPI_get_irc_color" /> pour les
couleurs)
</entry>
</row>
<row>
<entry>0x03 + "xx,yy"</entry>
<entry>
couleur du texte "<literal>xx</literal>"
et du fond "<literal>yy</literal>"
(voir <xref linkend="secAPI_get_irc_color" /> pour les
couleurs)
</entry>
</row>
<row>
<entry>0x0F</entry>
<entry>
désactiver la couleur et tous les attributs
</entry>
</row>
<row>
<entry>0x12</entry>
<entry>
vidéo inverse (inversion de la couleur d'écriture et du fond)
</entry>
</row>
<row>
<entry>0x1F</entry>
<entry>
texte souligné
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
NB: le même code (sans le numéro pour 0x03) peut être utilisé pour stopper
l'attribut défini.
</para>
<para>
Valeur renvoyée : aucune.
</para>
@@ -1909,6 +1886,11 @@ plugin->exec_on_files (plugin, "/tmp", &amp;callback);
plugin->print (plugin, NULL, NULL, "hello");
plugin->print (plugin, NULL, "#weechat", "hello");
plugin->print (plugin, "freenode", "#weechat", "hello");
plugin->print (plugin, "freenode", "#weechat", "hello");
plugin->print (plugin, NULL, NULL,
"test: \x02 gras \x0F\x03%02d bleu \x03%02d vert",
plugin->get_irc_color (plugin, "blue"),
plugin->get_irc_color (plugin, "green"));
</screen>
</para>
</section>
@@ -1942,6 +1924,10 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
</listitem>
</itemizedlist>
</para>
<para>
Pour afficher du texte en couleur, voir
<xref linkend="secAPI_print" />.
</para>
<para>
Valeur renvoyée : aucune.
</para>
@@ -2335,6 +2321,14 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
<entry><literal>%-</literal></entry>
<entry>aucune complétion pour le paramètre</entry>
</row>
<row>
<entry><literal>%*</literal></entry>
<entry>
répétition de la dernière complétion pour tous
les paramètres suivants (ce code doit être à la
fin du modèle de complétion, précédé d'un "|")
</entry>
</row>
<row>
<entry><literal>%a</literal></entry>
<entry>alias</entry>
@@ -2763,28 +2757,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;mon_keyb);
</listitem>
<listitem>
<para>
<option>évènement</option> : évènement, voir le tableau
ci-dessous :
<informaltable colsep="0" frame="none">
<tgroup cols="2">
<thead>
<row>
<entry>Evènement</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>un tampon a été ouvert</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>un tampon a été fermé</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<option>évènement</option> : évènement (voir le tableau
ci-dessous)
</para>
</listitem>
<listitem>
@@ -2800,8 +2774,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;mon_keyb);
</command>
</para>
<para>
Le paramètre argc vaut 1 et argv[0] contient le numéro
du tampon ouvert ou fermé.
Les paramètres passés à la fonction dépendent de l'évènement
(voir le tableau ci-dessous).
</para>
</listitem>
<listitem>
@@ -2818,6 +2792,43 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &amp;mon_keyb);
</listitem>
</itemizedlist>
</para>
<para>
Liste des évènements :
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Evènement</entry>
<entry>Description</entry>
<entry>Paramètres</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>buffer_open</literal></entry>
<entry>un tampon a été ouvert</entry>
<entry>
argc = 1, argv = { numéro de tampon }
</entry>
</row>
<row>
<entry><literal>buffer_close</literal></entry>
<entry>un tampon a été fermé</entry>
<entry>
argc = 1, argv = { numéro de tampon }
</entry>
</row>
<row>
<entry><literal>buffer_move</literal></entry>
<entry>un tampon a été déplacé</entry>
<entry>
argc = 2, argv = { nouveau numéro de tampon, ancien numéro }
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
Valeur renvoyée : le pointeur vers le nouveau gestionnaire
d'évènement.
@@ -5027,6 +5038,124 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
</section>
<section id="secCharset">
<title>Extension Charset</title>
<para>
L'extension Charset vous permet d'encoder et décoder les données en
utilisant un jeu de caractères, avec 3 niveaux : global, par serveur,
ou par canal.
Cette extension est facultative, mais recommandée : si elle n'est pas
chargée, WeeChat pourra uniquement lire/écrire des données UTF-8.
</para>
<para>
L'extension Charset devrait être automatiquement chargée par WeeChat
au démarrage.
Pour s'assurer que l'extension est bien chargée, essayez :
"<literal>/charset</literal>".
Si la commande n'est pas trouvée, alors chargez l'extension avec la
commande :
<screen>/plugin load charset</screen>
Si l'extension n'est pas trouvée, alors vous devriez recompiler
WeeChat avec les extensions et le support de Charset.
</para>
<para>
Lorsque l'extension Charset démarre, elle affiche le jeu de caractères
du terminal et l'interne.
Le jeu de caractères du terminal dépend de votre locale, et l'interne
est UTF-8.
Par exemple :
<screen>
-P- Charset plugin starting, terminal charset: ISO-8859-15 (WeeChat internal: UTF-8)
</screen>
</para>
<section id="secCharsetSettings">
<title>Configuration</title>
<itemizedlist>
<listitem>
<para>
Pour modifier les jeux de caractères de décodage et d'encodage
globaux, utilisez la commande "<literal>/setp</literal>".
Par exemple :
<screen>
/setp charset.global.decode = ISO-8859-15
/setp charset.global.encode = ISO-8859-15
</screen>
Si le jeu de caractères de décodage global n'est pas renseigné
(par exemple pendant le premier chargement de Charset), il sera
renseigné automatiquement avec le jeu de caractères du terminal
(s'il est différent de UTF-8) ou par défaut à
"<literal>ISO-8859-1</literal>".
La valeur d'encodage par défaut est vide, donc WeeChat envoie par
défaut avec le jeu de caractères interne (UTF-8).
</para>
</listitem>
<listitem>
<para>
Pour modifier le jeu de caractères d'un serveur, utilisez la
commande "<literal>/charset</literal>" sur le tampon serveur.
Si vous donnez seulement le jeu de caractères, alors vous
modifiez en même temps les valeurs de décodage et d'encodage.
Par exemple :
<screen>/charset ISO-8859-15</screen>
Ce qui est équivalent à :
<screen>
/charset decode ISO-8859-15
/charset encode ISO-8859-15
</screen>
</para>
</listitem>
<listitem>
<para>
Pour modifier le jeu de caractères d'un canal (ou d'une
conversation privée), utilisez la même commande que pour le
serveur, mais sur le tampon du canal (ou du privé).
</para>
</listitem>
</itemizedlist>
</section>
<section id="secCharsetFAQ">
<title>FAQ</title>
<para>
Si vous avez des problèmes avec certains caractères ou les accents en
utilisant l'extension Charset :
<itemizedlist>
<listitem>
<para>
vérifiez que weechat-curses est lié avec libncursesw
(attention : nécessaire sur beaucoup de distributions, mais pas
toutes) :
<screen>ldd /chemin/vers/weechat-curses</screen>
</para>
</listitem>
<listitem>
<para>
vérifiez la ligne charset (sur le tampon serveur), vous devriez
voir ISO-XXXXXX ou UTF-8 pour le charset du terminal. Si vous
voyez ANSI_X3.4-1968 ou d'autres valeurs, votre locale est
probablement erronée.
</para>
</listitem>
<listitem>
<para>
affectez la valeur pour le décodage global, par exemple :
<screen>/setp charset.global.decode = ISO-8859-15</screen>
</para>
</listitem>
</itemizedlist>
</para>
</section>
</section>
<section id="secExtensionsScripts">
<title>Extensions pour scripts</title>
@@ -5391,6 +5520,10 @@ weechat.set_charset("ISO-8859-1")
</listitem>
</itemizedlist>
</para>
<para>
Pour afficher du texte en couleur, voir
<xref linkend="secAPI_print" />.
</para>
<para>
Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
</para>
@@ -5401,6 +5534,7 @@ weechat.set_charset("ISO-8859-1")
weechat::print("message");
weechat::print("message", "#weechat");
weechat::print("message", "#weechat", "freenode");
weechat::print("test: \x0305 rouge \x0F normal");
# python
weechat.prnt("message")
@@ -5420,6 +5554,72 @@ weechat.print("message", "#weechat", "freenode")
</para>
</section>
<section id="secScript_print_server">
<title>print_server</title>
<para>
Prototype Perl :
<command>
weechat::print_server(message)
</command>
</para>
<para>
Prototype Python :
<command>
weechat.print_server(message)
</command>
</para>
<para>
Prototype Ruby :
<command>
Weechat.print_server(message)
</command>
</para>
<para>
Prototype Lua :
<command>
weechat.print_server(message)
</command>
</para>
<para>
Affiche un message sur le tampon serveur.
</para>
<para>
Paramètres :
<itemizedlist>
<listitem>
<para>
<option>message</option> : message à afficher
</para>
</listitem>
</itemizedlist>
</para>
<para>
Pour afficher du texte en couleur, voir
<xref linkend="secAPI_print" />.
</para>
<para>
Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
</para>
<para>
Exemples :
<screen>
# perl
weechat::print_server("message");
weechat::print_server("test: \x0305 rouge \x0F normal");
# python
weechat.print_server("message")
# ruby
Weechat.print_server("message")
-- lua
weechat.print_server("message")
</screen>
</para>
</section>
<section id="secScript_print_infobar">
<title>print_infobar</title>
+51 -18
View File
@@ -28,9 +28,22 @@ gestion des tampons
list: liste les tampons ouverts (pas de paramètre affiche cette liste)
notify: fixe le niveau de notification (0=jamais, 1=highlight, 2=1+msg, 3=2+join/part)
(quand exécuté sur un tampon serveur, cela fixe le niveau de notification par défaut pour le serveur entier)
scroll: fait défiler l'historique (peut être relatif, et peut se terminer par une lettre: s=sec, m=min, h=heure, d=jour, M=mois, y=année); s'il y a seulement une lettre, alors fait défiler jusqu'au début de cet élément
nombre: saute au tampon qui a ce numéro
serveur,
canal: saute au tampon par serveur et/ou nom de canal
nombre: saute au tampon qui a ce numéro
Exemples :
déplacer tampon: /buffer move 5
fermer tampon: /buffer close c'est le message de départ
niveau de notif.: /buffer notify 2
défiler 1 jour haut: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
défiler au début
de ce jour: /buffer scroll d
défiler 15 min bas: /buffer scroll +15m
défiler 20 msgs haut: /buffer scroll -20
aller sur #weechat: /buffer #weechat
</programlisting>
<command>builtin commande</command>
@@ -41,20 +54,25 @@ commande: commande
</programlisting>
<command>clear [-all | nombre]</command>
<command>clear [-all | numéro [numéro ...]]</command>
<programlisting>
effacer la/les fenêtre(s)
-all: effacer tous les tampons
nombre: effacer un tampon par son numéro
numéro: effacer un tampon par son numéro
</programlisting>
<command>connect [-all | nom_serveur [nom_serveur...]]</command>
<command>connect [-all [-nojoin] | nom_serveur [nom_serveur ...] [-nojoin] | nom/IP [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
se connecter à un/plusieurs serveur(s)
-all: se connecter à tous les serveurs
-all: se reconnecter à tous les serveurs
nom_serveur: nom du serveur pour se connecter
-nojoin: ne rejoindre aucun canal (même si l'autojoin est activé pour le serveur)
nom/IP: nom/IP pour se connecter, en créant un serveur temporaire
port: port pour le serveur (nombre entier, 6667 par défaut)
ipv6: utiliser le protocole IPv6
ssl: utiliser le protocole SSL
</programlisting>
<command>disconnect [-all | nom_serveur [nom_serveur...]]</command>
@@ -74,11 +92,12 @@ d
fichier: nom du fichier (sur la machine locale)
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
affiche des messages de debogage
dump: affiche les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante)
buffer: affiche le contenu du tampon en valeurs hexadécimales dans le fichier log
windows: affiche l'arbre des fenêtres
</programlisting>
@@ -136,21 +155,35 @@ autoload: charger automatiquement les extensions dans un r
Sans paramètre, la commande /plugin liste les extensions chargées.
</programlisting>
<command>reconnect [-all | nom_serveur [nom_serveur...]]</command>
<command>reconnect [-all [-nojoin] | nom_serveur [nom_serveur...] [-nojoin]]</command>
<programlisting>
se reconnecter à un/plusieurs serveur(s)
-all: se reconnecter à tous les serveurs
nom_serveur: nom du serveur pour se reconnecter
-nojoin: ne rejoindre aucun canal (même si l'autojoin est activé pour le serveur)
</programlisting>
<command>server [nom_serveur] | [nom_serveur nom/IP port [-auto | -noauto] [-ipv6] [-ssl] [-pwd mot_de_passe] [-nicks pseudo1 pseudo2 pseudo3] [-username nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,canal]] ] | [del nom_serveur]</command>
<command>save [fichier]</command>
<programlisting>
sauvegarder la configuration sur disque
fichier: fichier pour sauvegarder la configuration
</programlisting>
<command>server [list [nom_serveur]] | [listfull [nom_serveur]] | [add nom_serveur nom/IP [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd mot_de_passe] [-nicks pseudo1 pseudo2 pseudo3] [-username nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,canal]] ] | [copy nom_serveur nouveau_nom_serveur] | [rename nom_serveur nouveau_nom_serveur] | [keep nom_serveur] | [del nom_serveur]</command>
<programlisting>
liste, ajoute ou retire des serveurs
list: afficher les serveurs (pas de paramètre implique cette liste)
listfull: afficher les serveurs avec de l'info détaillée pour chaque
add: créer un nouveau serveur
nom_serveur: nom du serveur, pour usage interne et affichage
nom/IP: nom ou adresse IP du serveur
port: port pour le serveur (nombre entier)
port: port pour le serveur (nombre entier, 6667 par défaut)
temp: créer un serveur temporaire (non sauvé dans le fichier de configuration)
auto: se connecter automatiquement au serveur quand WeeChat démarre
noauto: ne pas se connecter au serveur quand WeeChat démarre (par défaut)
ipv6: utiliser le protocole IPv6
ssl: utiliser le protocole SSL
mot_de_passe: mot de passe pour le serveur
@@ -159,13 +192,11 @@ liste, ajoute ou retire des serveurs
pseudo3: second pseudo alternatif pour le serveur
nom_utilisateur: nom d'utilisateur
nom_réel: nom réel de l'utilisateur
</programlisting>
<command>save [fichier]</command>
<programlisting>
sauvegarder la configuration sur disque
fichier: fichier pour sauvegarder la configuration
copy: dupliquer un serveur
rename: renommer un serveur
keep: garder le serveur dans le fichier de configuration (pour les serveurs temporaires seulement)
del: supprimer un serveur
deloutq: supprimer la file d'attente des messages sortants pour tous les serveurs (tous les messages que WeeChat est actuellement en train d'envoyer)
</programlisting>
<command>set [option [ = valeur]]</command>
@@ -210,11 +241,13 @@ Pour chaque param
Sans paramètre, /ignore liste les ignore définis.
</programlisting>
<command>upgrade</command>
<command>upgrade [chemin_vers_binaire]</command>
<programlisting>
mettre à jour WeeChat sans se déconnecter des serveurs
Cette commande lance à nouveau le binaire WeeChat, il doit donc avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
chemin_vers_binaire: chemin vers le binaire WeeChat (par défaut le binaire courant)
Cette commande lance à nouveau un binaire WeeChat, il doit donc avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
</programlisting>
<command>uptime [-o]</command>
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = pl
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = ru
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = sco
+27
View File
@@ -0,0 +1,27 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = sv
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(QUICKSTART)
docdir = $(datadir)/doc/$(PACKAGE)
# install docs
install-data-hook:
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
+109
View File
@@ -0,0 +1,109 @@
WeeChat snabb start guide (svensk version)
=========================
1. Starta weechat
Beroende på vald GUI, måste du starta:
- weechat-curses för Curses GUI
- weechat-gtk för Gtk GUI (under utveckling)
- weechat-qt för Qt GUI (inte utvecklad)
- weechat-wxwidgets för WxWidgets GUI (inte utvecklad)
2. Online hjälp / inställningar
WeeChat har hjälp för alla kommandon, skriv /help för mer information.
För att få hjälp med ett kommando, skriv /help kommando.
För att ställa in inställningarna, använd /set inställning = värde,
t ex. /set col_nick_self = white (ändrar ditt namn till färgen vit.)
Du kan använda /set inställning med partial namn (visar alla inställningar
som innehåller bokstäver), eller bara en inställning utan ett värde
(för att se mer information om den specifika inställningen, t ex. /set col_nick_self.)
Viktigt: inställningar sparas när WeeChat avlutas (eller med "/save"
kommando). Redigera INTE setup filen medans WeeChat körs, därför WeeChat
kan skriva i denna fil när som helst, och det är inte möjligt att ladda om den.
För att ändra inställingar, använd "/set" kommandot, WeeChat använder då
direkt de nya inställningarna.
3. Skapa en server
Till exempel irc.quakenet.org, port 6667:
/server quakenet irc.quakenet.org 6667
(/help server för full kommando hjälp)
4. Server inställningar
Smeknamn:
/set quakenet.server_nick1 = "mynick"
/set quakenet.server_nick2 = "mynick2"
/set quakenet.server_nick3 = "mynick3"
Användarnamn/Riktigt namn:
/set quakenet.server_username = "Mitt användarnamn"
/set quakenet.server_realname = "Mtt riktiga namn"
Automatiskt ansluta till server:
/set quakenet.server_autoconnect = on
Automatiskt joina en/flera kanaler:
/set quakenet.server_autojoin = "#chan1,#chan2"
Andra inställningar:
Du kan see server inställningar and värden med /set quakenet
För att ställa in en inställning, använd /set quakenet.server_inställning = värde
5. Ansluta till en server och automatiskt joina kanaler:
/connect quakenet
6. Joina/parta en kanal:
Joina en kanal:
/join #kanal
Parta en kanal:
/part [quit message]
Parta en kanal och stäng buffer:
/close [quit message]
(/close är ett alias av /buffer close)
7. Buffer/fönster management
Du kan ta hand om buffers med "/buffer" kommandot och fönster
med "/window" kommandot.
Till exempel, För att dela fönstret till ett litet fönster (1/3 bred),
och ett stort (2/3), använd kommandot:
/window splitv 33
8. Knapp 'binding'
Beroende på ditt tangentbord och/eller dina behov, kan du binda varje tangentknapp
med "/key" kommandot.
Till exempel, för att binda meta-y (alt-y) till kommandot "/buffer close":
/key (tryck meta-k) (tryck meta-y) /buffer close
Du borde ha en kommando rad som denna:
/key meta-y /buffer close
9. Plugins/skripts
På vissa distributioner såsom Debian, är plugins tillgängliga via ett separat paket
(som weechat-plugins).
Plugins är automatiskt laddad när det har hittats.
Det finns många plugins/skripts tillgängliga för WeeChat, Kolla:
http://weechat.flashtux.org/plugins.php
Kolla även WeeChat's dokumentering för att ladda/'unloada' plugins eller skripts..
10. Mer dokumentation
Du kan nu använda WeeChat och läsa FAQ/dokumentation för övriga frågor:
http://weechat.flashtux.org/faq.php
http://weechat.flashtux.org/doc.php
Njut av WeeChat!
--
(c) 2006-05-31, skrivet av FlashCode <flashcode@flashtux.org>
2007-08-09, översatt till svenska av Robin Karlsson <Robin--Karlsson@bredband.net>
Det här dokumentet är en del av WeeChat och är distribuerad under GPL
licens.
+1 -1
View File
@@ -1,4 +1,4 @@
.TH WEECHAT 1 "June 2007" "FlashCode"
.TH WEECHAT 1 "September 2007" "FlashCode"
.SH NAME
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(PO_FILES
+1 -1
View File
@@ -1,7 +1,7 @@
DOMAIN = $(PACKAGE)
subdir = po
top_builddir = ..
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=NG_:1,2
COPYRIGHT_HOLDER =
EXTRA_LOCALE_CATEGORIES =
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
+1534 -1257
View File
File diff suppressed because it is too large Load Diff
+1486 -1242
View File
File diff suppressed because it is too large Load Diff
+1481 -1247
View File
File diff suppressed because it is too large Load Diff
+1546 -1259
View File
File diff suppressed because it is too large Load Diff
+1478 -1246
View File
File diff suppressed because it is too large Load Diff
+1532 -1264
View File
File diff suppressed because it is too large Load Diff
+1447 -1233
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -1,9 +1,9 @@
#
# Copyright (c) 2006 by FlashCode <flashcode@flashtux.org>
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,22 +12,22 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Speaker beep on highlight/private msg.
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-09-02, FlashCode <flashcode@flashtux.org>:
# initial release
# version 0.1: initial release
#
use strict;
my $version = "0.1";
my $version = "0.2";
my $beep_command = "echo -n \a";
# default values in setup file (~/.weechat/plugins.rc)
+10 -7
View File
@@ -1,9 +1,9 @@
#
# Copyright (c) 2006 by FlashCode <flashcode@flashtux.org>
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,8 +12,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
@@ -21,20 +20,24 @@
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.3: upgraded licence to GPL 3
# 2007-06-12, FlashCode <flashcode@flashtux.org>:
# version 0.2: added filename completion
# 2006-10-27, FlashCode <flashcode@flashtux.org>:
# initial release
# version 0.1: initial release
#
use strict;
my $version = "0.1";
my $version = "0.3";
weechat::register("bufsave", $version, "", "Save buffer content to a file");
weechat::add_command_handler("bufsave", "bufsave_cmd",
"save current buffer to a file",
"filename",
"filename: target file (must not exist)",
"");
"%f");
sub bufsave_cmd
{
+81 -81
View File
@@ -1,123 +1,123 @@
# =============================================================================
# Copyright (c) 2003-2005 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# fete.pl (c) Décembre 2003 par FlashCode <flashcode@flashtux.org>
# Mis à jour le 04/06/2005, FlashCode <flashcode@flashtux.org>
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# fete.pl (c) December 2003 by FlashCode <flashcode@flashtux.org>
# Updated on 2007-08-10 by FlashCode <flashcode@flashtux.org>
#
# Manages french calendat feasts with "/fete" command
# Syntax: /fete - display today's and tomorrow's feast
# /fete firstname - search for name in calendar
#
# Gestion des fêtes du calendrier français avec la commande "/fete"
# Syntaxe: /fete - affiche la fête du jour et du lendemain
# /fete prenom - cherche un prénom dans le calendrier
# =============================================================================
use locale;
my $version = "0.4";
weechat::register ("Fete", $version, "", "Gestion des fêtes du calendrier français");
weechat::print ("Script 'Fete' $version chargé");
my $version = "0.7";
weechat::register ("Fete", $version, "", "Gestion des fêtes du calendrier français", "UTF-8");
weechat::print ("Script 'Fete' $version chargé");
weechat::add_command_handler ("fete", fete);
@noms_jours = qw(Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi);
@noms_mois = qw(Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre);
@noms_mois = qw(Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre);
@fetes = (
# janvier
[ '!Marie - JOUR de l\'AN', '&Basile', '!Geneviève', '&Odilon', '&Edouard',
'&Mélaine', '&Raymond', '&Lucien', '!Alix', '&Guillaume', '&Paulin',
'!Tatiana', '!Yvette', '!Nina', '&Rémi', '&Marcel', '!Roseline',
'!Prisca', '&Marius', '&Sébastien', '!Agnès', '&Vincent', '&Barnard',
'&François de Sales', '-Conversion de St Paul', '!Paule', '!Angèle',
[ '!Marie - JOUR de l\'AN', '&Basile', '!Geneviève', '&Odilon', '&Edouard',
'&Mélaine', '&Raymond', '&Lucien', '!Alix', '&Guillaume', '&Paulin',
'!Tatiana', '!Yvette', '!Nina', '&Rémi', '&Marcel', '!Roseline',
'!Prisca', '&Marius', '&Sébastien', '!Agnès', '&Vincent', '&Barnard',
'&François de Sales', '-Conversion de St Paul', '!Paule', '!Angèle',
'&Thomas d\'Aquin', '&Gildas', '!Martine', '!Marcelle' ],
# février
[ '!Ella', '-Présentation', '&Blaise', '!Véronique', '!Agathe',
'&Gaston', '!Eugénie', '!Jacqueline', '!Apolline', '&Arnaud',
'-Notre-Dame de Lourdes', '&Félix', '!Béatrice', '&Valentin', '&Claude',
'!Julienne', '&Alexis', '!Bernadette', '&Gabin', '!Aimée',
'&Pierre Damien', '!Isabelle', '&Lazare', '&Modeste', '&Roméo', '&Nestor',
# février
[ '!Ella', '-Présentation', '&Blaise', '!Véronique', '!Agathe',
'&Gaston', '!Eugénie', '!Jacqueline', '!Apolline', '&Arnaud',
'-Notre-Dame de Lourdes', '&Félix', '!Béatrice', '&Valentin', '&Claude',
'!Julienne', '&Alexis', '!Bernadette', '&Gabin', '!Aimée',
'&Pierre Damien', '!Isabelle', '&Lazare', '&Modeste', '&Roméo', '&Nestor',
'!Honorine', '&Romain', '&Auguste' ],
# mars
[ '&Aubin', '&Charles le Bon', '&Guénolé', '&Casimir', '&Olive', '&Colette',
'!Félicité', '&Jean de Dieu', '!Françoise', '&Vivien', '!Rosine',
'!Justine', '&Rodrigue', '!Mathilde', '!Louise de Marillac', '!Bénédicte',
'&Patrice', '&Cyrille', '&Joseph', '&Herbert', '!Clémence', '!Léa',
'&Victorien', '!Catherine de Suède', '-Annonciation', '!Larissa',
'&Habib', '&Gontran', '!Gwladys', '&Amédée', '&Benjamin' ],
[ '&Aubin', '&Charles le Bon', '&Guénolé', '&Casimir', '&Olive', '&Colette',
'!Félicité', '&Jean de Dieu', '!Françoise', '&Vivien', '!Rosine',
'!Justine', '&Rodrigue', '!Mathilde', '!Louise de Marillac', '!Bénédicte',
'&Patrice', '&Cyrille', '&Joseph', '&Herbert', '!Clémence', '!Léa',
'&Victorien', '!Catherine de Suède', '-Annonciation', '!Larissa',
'&Habib', '&Gontran', '!Gwladys', '&Amédée', '&Benjamin' ],
# avril
[ '&Hugues', '!Sandrine', '&Richard', '&Isodore', '!Irène', '&Marcellin',
[ '&Hugues', '!Sandrine', '&Richard', '&Isodore', '!Irène', '&Marcellin',
'&Jean-Baptiste de la Salle', '!Julie', '&Gautier', '&Fulbert',
'&Stanislas', '&Jules', '!Ida', '&Maxime', '&Paterne',
'&Benoît-Joseph Labre', '&Anicet', '&Parfait', '!Emma', '!Odette',
'&Anselme', '&Alexandre', '&Georges', '&Fidèle', '&Marc', '!Alida',
'!Zita', '!Valérie', '!Catherine de Sienne', '&Robert' ],
'&Benoît-Joseph Labre', '&Anicet', '&Parfait', '!Emma', '!Odette',
'&Anselme', '&Alexandre', '&Georges', '&Fidèle', '&Marc', '!Alida',
'!Zita', '!Valérie', '!Catherine de Sienne', '&Robert' ],
# mai
[ '&Jérémie - FETE du TRAVAIL', '&Boris', '&Philippe / Jacques', '&Sylvain',
'!Judith', '!Prudence', '!Gisèle', '&Désiré - ANNIVERSAIRE 1945',
'&Pacôme', '!Solange', '!Estelle', '&Achille', '!Rolande', '&Mathias',
'!Denise', '&Honoré', '&Pascal', '&Eric', '&Yves', '&Bernardin',
'&Constantin', '&Emile', '&Didier', '&Donatien', '!Sophie', '&Bérenger',
[ '&Jérémie - FETE du TRAVAIL', '&Boris', '&Philippe / Jacques', '&Sylvain',
'!Judith', '!Prudence', '!Gisèle', '&Désiré - ANNIVERSAIRE 1945',
'&Pacôme', '!Solange', '!Estelle', '&Achille', '!Rolande', '&Mathias',
'!Denise', '&Honoré', '&Pascal', '&Eric', '&Yves', '&Bernardin',
'&Constantin', '&Emile', '&Didier', '&Donatien', '!Sophie', '&Bérenger',
'&Augustin', '&Germain', '&Aymar', '&Ferdinand', '-Visitation' ],
# juin
[ '&Justin', '!Blandine', '&Kévin', '!Clotilde', '&Igor', '&Norbert',
'&Gilbert', '&Médard', '!Diane', '&Landry', '&Barnabé', '&Guy',
'&Antoine de Padoue', '&Elisée', '!Germaine', '&Jean-François Régis',
'&Hervé', '&Léonce', '&Romuald', '&Silvère', '&Rodolphe', '&Alban',
[ '&Justin', '!Blandine', '&Kévin', '!Clotilde', '&Igor', '&Norbert',
'&Gilbert', '&Médard', '!Diane', '&Landry', '&Barnabé', '&Guy',
'&Antoine de Padoue', '&Elisée', '!Germaine', '&Jean-François Régis',
'&Hervé', '&Léonce', '&Romuald', '&Silvère', '&Rodolphe', '&Alban',
'!Audrey', '&Jean-Baptiste', '&Salomon', '&Anthelme', '&Fernand',
'&Irénée', '&Pierre / Paul', '&Martial' ],
'&Irénée', '&Pierre / Paul', '&Martial' ],
# juillet
[ '&Thierry', '&Martinien', '&Thomas', '&Florent', '&Antoine', '!Mariette',
'&Raoul', '&Thibaut', '!Amandine', '&Ulrich', '&Benoît', '&Olivier',
'&Henri / Joël', '!Camille - FETE NATIONALE', '&Donald',
'-N.D. du Mont Carmel', '!Charlotte', '&Frédéric', '&Arsène', '!Marina',
'&Raoul', '&Thibaut', '!Amandine', '&Ulrich', '&Benoît', '&Olivier',
'&Henri / Joël', '!Camille - FETE NATIONALE', '&Donald',
'-N.D. du Mont Carmel', '!Charlotte', '&Frédéric', '&Arsène', '!Marina',
'&Victor', '!Marie-Madeleine', '!Brigitte', '!Christine', '&Jacques',
'&Anne', '!Nathalie', '&Samson', '!Marthe', '!Juliette',
'&Ignace de Loyola' ],
# août
# août
[ '&Alphonse', '&Julien', '!Lydie', '&Jean-Marie Vianney', '&Abel',
'-Transfiguration', '&Gaëtan', '&Dominique', '&Amour', '&Laurent',
'-Transfiguration', '&Gaëtan', '&Dominique', '&Amour', '&Laurent',
'!Claire', '!Clarisse', '&Hippolyte', '&Evrard',
'!Marie - ASSOMPTION', '&Armel', '&Hyacinthe', '!Hélène', '&Jean Eudes',
'&Bernard', '&Christophe', '&Fabrice', '!Rose de Lima', '&Barthélémy',
'!Marie - ASSOMPTION', '&Armel', '&Hyacinthe', '!Hélène', '&Jean Eudes',
'&Bernard', '&Christophe', '&Fabrice', '!Rose de Lima', '&Barthélémy',
'&Louis', '!Natacha', '!Monique', '&Augustin', '!Sabine', '&Fiacre',
'&Aristide' ],
# septembre
[ '&Gilles', '!Ingrid', '&Grégoire', '!Rosalie', '!Raïssa', '&Bertrand',
'!Reine', '-Nativité de Marie', '&Alain', '!Inès', '&Adelphe',
'&Apollinaire', '&Aimé', '-La Ste Croix', '&Roland', '!Edith', '&Renaud',
'!Nadège', '!Emilie', '&Davy', '&Matthieu', '&Maurice', '&Constant',
'!Thècle', '&Hermann', '&Côme / Damien', '&Vincent de Paul', '&Venceslas',
'&Michel / Gabriel', '&Jérôme' ],
[ '&Gilles', '!Ingrid', '&Grégoire', '!Rosalie', '!Raïssa', '&Bertrand',
'!Reine', '-Nativité de Marie', '&Alain', '!Inès', '&Adelphe',
'&Apollinaire', '&Aimé', '-La Ste Croix', '&Roland', '!Edith', '&Renaud',
'!Nadège', '!Emilie', '&Davy', '&Matthieu', '&Maurice', '&Constant',
'!Thècle', '&Hermann', '&Côme / Damien', '&Vincent de Paul', '&Venceslas',
'&Michel / Gabriel', '&Jérôme' ],
# octobre
[ '!Thérèse de l\'Enfant Jésus', '&Léger', '&Gérard', '&François d\'Assise',
'!Fleur', '&Bruno', '&Serge', '!Pélagie', '&Denis', '&Ghislain', '&Firmin',
'&Wilfried', '&Géraud', '&Juste', '!Thérèse d\'Avila', '!Edwige',
'&Baudouin', '&Luc', '&René', '!Adeline', '!Céline', '!Elodie',
'&Jean de Capistran', '&Florentin', '&Crépin', '&Dimitri', '!Emeline',
[ '!Thérèse de l\'Enfant Jésus', '&Léger', '&Gérard', '&François d\'Assise',
'!Fleur', '&Bruno', '&Serge', '!Pélagie', '&Denis', '&Ghislain', '&Firmin',
'&Wilfried', '&Géraud', '&Juste', '!Thérèse d\'Avila', '!Edwige',
'&Baudouin', '&Luc', '&René', '!Adeline', '!Céline', '!Elodie',
'&Jean de Capistran', '&Florentin', '&Crépin', '&Dimitri', '!Emeline',
'&Simon / Jude', '&Narcisse', '!Bienvenue', '&Quentin' ],
# novembre
[ '&Harold - TOUSSAINT', '-Défunts', '&Hubert', '&Charles', '!Sylvie',
'!Bertille', '!Carine', '&Geoffroy', '&Théodore', '&Léon',
[ '&Harold - TOUSSAINT', '-Défunts', '&Hubert', '&Charles', '!Sylvie',
'!Bertille', '!Carine', '&Geoffroy', '&Théodore', '&Léon',
'&Martin - ARMISTICE 1918', '&Christian', '&Brice', '&Sidoine', '&Albert',
'!Marguerite', '!Elisabeth', '!Aude', '&Tanguy', '&Edmond',
'-Présentation de Marie', '!Cécile', '&Clément', '!Flora', '!Catherine',
'!Delphine', '&Séverin', '&Jacques de la Marche', '&Saturnin', '&André' ],
# décembre
[ '!Florence', '!Viviane', '&Xavier', '!Barbara', '&Gérald', '&Nicolas',
'&Ambroise', '-Immaculée Conception', '&Pierre Fourier', '&Romaric',
'-Présentation de Marie', '!Cécile', '&Clément', '!Flora', '!Catherine',
'!Delphine', '&Séverin', '&Jacques de la Marche', '&Saturnin', '&André' ],
# décembre
[ '!Florence', '!Viviane', '&Xavier', '!Barbara', '&Gérald', '&Nicolas',
'&Ambroise', '-Immaculée Conception', '&Pierre Fourier', '&Romaric',
'&Daniel', '!Jeanne de Chantal', '!Lucie', '!Odile', '!Ninon', '!Alice',
'&Gaël', '&Gatien', '&Urbain', '&Abraham', '&Pierre Canisius',
'!Françoise-Xavier', '&Armand', '!Adèle', '&Emmanuel - NOEL', '&Etienne',
'&Gaël', '&Gatien', '&Urbain', '&Abraham', '&Pierre Canisius',
'!Françoise-Xavier', '&Armand', '!Adèle', '&Emmanuel - NOEL', '&Etienne',
'&Jean', '-Sts Innocents', '&David', '&Roger', '&Sylvestre' ],
);
+94
View File
@@ -0,0 +1,94 @@
# growl-notify.pl -- Have Weechat send notifications thru Mac::Growl
# Copyright (c) 2007 Zak B. Elep <zakame@spunge.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
use strict;
use Mac::Growl;
my $app = 'Weechat (Curses)';
my @messages_events = (
[ nick => 'Changed Nick', '$nick has changed nick to $text' ],
[ join => 'Joined Room', '$nick has joined $text' ],
[ part => 'Left Room', '$nick has left $channel($text)' ],
[ quit => 'Quit', '$nick has quit($text)' ],
[ topic => 'Set Topic', '$nick has set topic to \'$text\'' ],
[ weechat_highlight => 'Highlight Mentioned', '$text in $channel' ],
[ weechat_pv => 'Private Message', '$nick: $text' ],
);
my $notes;
push @$notes, $_->[1] foreach @messages_events;
Mac::Growl::RegisterNotifications $app, $notes, $notes;
my $version = '0.2';
weechat::register 'growl-notify', $version, '',
'Send Weechat notifications thru Mac::Growl';
for my $message (@messages_events) {
no strict 'refs'; # access symbol table
my $subname = join '', __PACKAGE__, '::handler_', $message->[0];
*{$subname} = sub
{
my($server, $args) = @_;
# weechat::print $args;
my($mask, $nick, $channel, $text);
(undef, $channel, $text) = split /:/, $args, 3;
($mask, undef, $channel) = split / /, $channel;
($nick, undef) = split /!/, $mask;
Mac::Growl::PostNotification $app, $message->[1],
$message->[1], eval qq("$message->[2]"),
($message->[0] =~ /(pv|highlight)/ ? 1 : 0);
return weechat::PLUGIN_RC_OK;
};
weechat::add_message_handler $message->[0], $subname;
}
__END__
=head1 NAME
growl-notify.pl - Send Weechat notifications thru the Growl framework for Mac
=head1 SYNOPSIS
# in Weechat console, do
/perl load /path/to/growl-notify.pl
# or put script in .weechat/perl/autoload/
=head1 DESCRIPTION
growl-notify is a script plugin for Weechat that sends notifications of common
IRC events (such as joins, highlights, and private messages) to the Growl
notification framework for the Macintosh. It uses the perl module L<Mac::Growl>
to do its magic, even allowing the ncurses version of Weechat to generate
graphical or audible event notifications.
=head1 SEE ALSO
L<http://growl.info>, L<Mac::Growl>, L<http://weechat.flashtux.org>
=head1 AUTHORS
Zak B. Elep, C<< zakame at spunge.org >>
=cut
+216
View File
@@ -0,0 +1,216 @@
#
# Copyright (c) 2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Save/restore buffers layout.
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2, minor changes in script description
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.1, initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_auto_save = "on";
weechat::register("layout", $version, "unload_layout", "Save/restore buffers layout");
weechat::set_plugin_config("auto_save", $default_auto_save) if (weechat::get_plugin_config("auto_save") eq "");
weechat::add_command_handler("layout", "layout",
"save/restore buffers layout",
"[save]",
"save: save buffers order",
"save");
weechat::add_event_handler("buffer_open", "buffer_open");
# get buffer name, depending on type of buffer
sub get_buffer_name
{
# DCC type ?
return "<DCC>" if ($_[0] eq "1");
# RAW IRC type ?
return "<RAW>" if ($_[0] eq "2");
# no channel ?
if ($_[2] eq "")
{
return "<servers>" if (weechat::get_config("look_one_server_buffer") eq "on");
return "<empty>" if ($_[1] eq "");
return $_[1];
}
# return server/channel
return $_[1]."/".$_[2];
}
# get buffer list and build a hash: number => name
sub get_layout_hash
{
my %buflist;
my $bufinfo = weechat::get_buffer_info();
if ($bufinfo)
{
while (my ($nobuf, $binfos) = each %$bufinfo)
{
$buflist{$nobuf}{"server"} = $$binfos{"server"};
$buflist{$nobuf}{"channel"} = $$binfos{"channel"};
$buflist{$nobuf}{"name"} = get_buffer_name($$binfos{"type"},
$$binfos{"server"},
$$binfos{"channel"});
}
}
return %buflist;
}
# get buffet list and build a hash: name => number
sub get_layout_hash_by_name
{
my %buflist;
my $bufinfo = weechat::get_buffer_info();
if ($bufinfo)
{
while (my ($nobuf, $binfos) = each %$bufinfo)
{
my $name = get_buffer_name($$binfos{"type"},
$$binfos{"server"},
$$binfos{"channel"});
$buflist{$name} = $nobuf;
}
}
return %buflist;
}
# build a string with buffer list hash
sub get_layout_string
{
my $layout = "";
my %buflist = get_layout_hash();
my @keys = sort { $a <=> $b } (keys %buflist);
foreach my $key (@keys)
{
$layout .= ",".$key.":".$buflist{$key}{"name"};
}
$layout = substr($layout, 1);
return $layout;
}
# build a hash (name => number) from config string
sub get_hash_from_string
{
my %buflist;
my @fields = split(/,/, $_[0]);
foreach my $field (@fields)
{
$buflist{$2} = $1 if ($field =~ /([0-9]+):(.*)/);
}
return %buflist;
}
# save layout to plugin option
sub save_layout
{
my $layout = get_layout_string();
if ($layout ne "")
{
weechat::print_server("Layout: saving buffers order: $layout");
weechat::set_plugin_config("buffers", $layout);
}
}
# the /layout command
sub layout
{
if ($_[1] eq "save")
{
save_layout();
}
else
{
weechat::command("/help layout");
}
return weechat::PLUGIN_RC_OK;
}
# event handler called when a buffer is open
sub buffer_open
{
# retrieve current layout and config layout
my %buflist = get_layout_hash();
my %buflist_name = get_layout_hash_by_name();
my %config = get_hash_from_string(weechat::get_plugin_config("buffers"));
my $name = $buflist{$_[0]}{"name"};
# scan open buffers and look for correct position
my $pos = $config{$name};
if ($pos ne "")
{
my @keys = sort { $b <=> $a } (keys %buflist);
my $nbbuf = $#keys + 1;
# find best position (move to last known buffer + 1)
my ($best_pos, $best_pos2) = (-1, -1);
my $config_seen = 0;
foreach my $key (@keys)
{
$config_seen = 1 if (($name ne $buflist{$key}{"name"})
&& ($config{$buflist{$key}{"name"}} ne ""));
$best_pos = scalar($key) if ($config_seen == 0);
}
foreach my $key (@keys)
{
$best_pos2 = scalar($key) if (($best_pos2 == -1)
&& ($name ne $buflist{$key}{"name"})
&& ($config{$buflist{$key}{"name"}} ne "")
&& (scalar($config{$name}) < scalar($config{$buflist{$key}{"name"}})));
}
$best_pos = $best_pos2 if (($best_pos2 != -1) && ($best_pos2 < $best_pos));
if (($best_pos != -1) && ($best_pos != scalar($buflist_name{$name})))
{
weechat::command("/buffer move $best_pos",
$buflist{$_[0]}{"channel"},
$buflist{$_[0]}{"server"});
}
}
return weechat::PLUGIN_RC_OK;
}
# function called when unloading script (save layout if auto_save is on)
sub unload_layout
{
my $auto_save = weechat::get_plugin_config("auto_save");
save_layout() if (lc($auto_save) eq "on");
}
+9 -6
View File
@@ -1,9 +1,9 @@
#
# Copyright (c) 2006 by FlashCode <flashcode@flashtux.org>
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,27 +12,30 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Search for text in WeeChat disk log files.
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-04-17, FlashCode <flashcode@flashtux.org>:
# initial release
# version 0.1: initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_max = "8";
my $default_server = "off";
my $default_grep_options = "-i";
# init script
weechat::register("logsearch", "0.1", "", "Search for text in WeeChat disk log files");
weechat::register("logsearch", $version, "", "Search for text in WeeChat disk log files");
weechat::set_plugin_config("max", $default_max) if (weechat::get_plugin_config("max") eq "");
weechat::set_plugin_config("server", $default_server) if (weechat::get_plugin_config("server") eq "");
weechat::set_plugin_config("grep_options", $default_grep_options) if (weechat::get_plugin_config("grep_options") eq "");
+6 -5
View File
@@ -3,7 +3,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,21 +12,22 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Display old topics for a channel.
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2007-03-29, FlashCode <flashcode@flashtux.org>:
# initial release
# version 0.1: initial release
#
use strict;
my $version = "0.1";
my $version = "0.2";
my $plugin_help_options = "Plugins options (set with /setp):\n"
." - perl.oldtopic.log_server: if on, displays all topic changes on server buffer\n"
+6 -5
View File
@@ -1,9 +1,9 @@
#
# Copyright (c) 2006 by FlashCode <flashcode@flashtux.org>
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,8 +12,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
@@ -21,6 +20,8 @@
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.4: upgraded licence to GPL 3
# 2006-05-30, FlashCode <flashcode@flashtux.org>:
# added plugin options for commands
# 2004-10-01, FlashCode <flashcode@flashtux.org>:
@@ -29,7 +30,7 @@
use strict;
my $version = "0.3";
my $version = "0.4";
my $command_suffix = " >/dev/null 2>&1 &";
# default values in setup file (~/.weechat/plugins.rc)
+9 -6
View File
@@ -1,9 +1,9 @@
#
# Copyright (c) 2006 by FlashCode <flashcode@flashtux.org>
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -12,20 +12,23 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Translate words and display result in infobar, local buffer or channel
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-07-03, FlashCode <flashcode@flashtux.org>:
# initial release
# version 0.1: initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_output_infobar = "on";
my $default_timeout = "2";
@@ -34,7 +37,7 @@ my $default_timeout = "2";
my $languages = "de|el|en|es|fr|it|ja|ko|nl|pt|ru|zh|zt";
# init script
weechat::register("translate", "0.1", "", "Translation script");
weechat::register("translate", $version, "", "Translation script");
weechat::set_plugin_config("output_infobar", $default_output_infobar) if (weechat::get_plugin_config("output_infobar") eq "");
weechat::set_plugin_config("timeout", $default_timeout) if (weechat::get_plugin_config("timeout") eq "");
+78
View File
@@ -0,0 +1,78 @@
# weeter.pl -- Send CTCP ACTION messages as Twitter status updates
# Copyright (c) 2007 Zak B. Elep <zakame@spunge.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
use strict;
use Net::Twitter;
my $version = '0.1';
weechat::register 'weeter', $version, '',
'Send CTCP ACTION messages as Twitter status updates';
my %credentials;
for(qw(username password)){
$credentials{$_} = weechat::get_plugin_config $_;
}
my $twitter = new Net::Twitter %credentials;
weechat::add_modifier 'irc_user', 'privmsg', 'twitter_update';
sub twitter_update
{
my $message = $_[1];
(my $status = $message) =~ s#^/me\s+##;
update $twitter $status unless $status eq $message;
return $message;
}
__END__
=head1 NAME
weeter.pl - Send Weechat CTCP ACTION messages to Twitter as status updates
=head1 SYNOPSIS
# in Weechat console, do
/setp perl.weeter.username = 'your-twitter-username'
/setp perl.weeter.password = 'your-twitter-password'
/perl load /path/to/weeter.pl
# or do the /setp and put script in .weechat/perl/autoload
=head1 DESCRIPTION
weeter is a script plugin for Weechat that enables CTCP ACTION messages (aka
C</me> actions) to be sent to the Twitter web service as user status updates.
It uses the L<Net::Twitter> plugin from CPAN to do its work.
weeter requires the variables C<perl.weeter.username> and
C<perl.weeter.password> defined prior to use.
=head1 SEE ALSO
L<http://twitter.com>, L<Net::Twitter>, L<http://weechat.flashtux.org>
=head1 AUTHORS
Zak B. Elep, C<< zakame at spunge.org >>
=cut
+26 -5
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
@@ -21,7 +20,6 @@ INCLUDE(CheckIncludeFiles)
INCLUDE(CheckFunctionExists)
CHECK_INCLUDE_FILES("arpa/inet.h" HAVE_ARPA_INET_H)
#CHECK_INCLUDE_FILES("libintl.h" HAVE_LIBINTL_H)
CHECK_INCLUDE_FILES("limits.h" HAVE_LIMITS_H)
CHECK_INCLUDE_FILES("locale.h" HAVE_LOCALE_H)
CHECK_INCLUDE_FILES("netdb.h" HAVE_NETDB_H)
@@ -36,6 +34,9 @@ CHECK_INCLUDE_FILES("pwd.h" HAVE_PWD_H)
CHECK_INCLUDE_FILES("errno.h" HAVE_ERRNO_H)
CHECK_INCLUDE_FILES("wchar.h" HAVE_WCHAR_H)
CHECK_INCLUDE_FILES("langinfo.h" HAVE_LANGINFO_CODESET)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_INCLUDE_FILES("utf8/wchar.h" HAVE_UTF8_WCHAR_H)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_FUNCTION_EXISTS(gethostbyname HAVE_GETHOSTBYNAME)
CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
@@ -82,14 +83,34 @@ IF(NOT DISABLE_GNUTLS)
ENDIF(GNUTLS_FOUND)
ENDIF(NOT DISABLE_GNUTLS)
# Check for iconv
FIND_PACKAGE(Iconv)
IF(ICONV_FOUND)
ADD_DEFINITIONS( -DHAVE_ICONV )
ENDIF(ICONV_FOUND)
IF(NOT DISABLE_PLUGINS)
FIND_LIBRARY(DL_LIBRARY
NAMES dl
PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec
)
ADD_DEFINITIONS(-DPLUGINS)
LIST(APPEND STATIC_LIBS weechat_plugins)
ADD_SUBDIRECTORY( plugins )
IF(DL_LIBRARY)
STRING(REGEX REPLACE "/[^/]*$" "" DL_LIBRARY_PATH "${DL_LIBRARY}")
SET(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${DL_LIBRARY_PATH}")
LIST(APPEND EXTRA_LIBS dl)
ENDIF(DL_LIBRARY)
ENDIF(NOT DISABLE_PLUGINS)
ADD_SUBDIRECTORY( common )
List(APPEND STATIC_LIBS weechat_main)
ADD_SUBDIRECTORY( irc )
LIST(APPEND STATIC_LIBS weechat_irc)
IF(NOT DISABLE_PLUGINS)
ADD_SUBDIRECTORY( plugins )
ENDIF(NOT DISABLE_PLUGINS)
ADD_SUBDIRECTORY( gui )
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS = common irc plugins gui
+2 -7
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(LIB_MAIN_SRC weechat.c weechat.h alias.c alias.h backtrace.c backtrace.h
@@ -25,9 +24,5 @@ INCLUDE(CheckSymbolExists)
CHECK_INCLUDE_FILES("sys/file.h" HAVE_SYS_FILE_H)
CHECK_SYMBOL_EXISTS(flock "sys/file.h" HAVE_FLOCK)
IF(ICONV_FOUND)
ADD_DEFINITIONS( -DHAVE_ICONV )
ENDIF(ICONV_FOUND)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_LIBRARY(weechat_main STATIC ${LIB_MAIN_SRC})
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GNUTLS_CFLAGS)
+3 -4
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* alias.c: WeeChat alias */
@@ -165,7 +164,7 @@ alias_get_final_command (t_weechat_alias *alias)
if (alias->running)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
gui_printf (NULL,
_("%s circular reference when calling alias \"/%s\"\n"),
WEECHAT_ERROR, alias->alias_name);
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* backtrace.c: display backtrace after a segfault */
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+1017 -640
View File
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+42 -24
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* completion.c: completes words according to context (cmd/nick) */
@@ -572,7 +571,7 @@ completion_list_add_server_nicks (t_completion *completion)
ptr_channel = ptr_channel->next_channel)
{
if ((!completion->channel || (t_irc_channel *)(completion->channel) != ptr_channel)
&& (ptr_channel->type == CHANNEL_TYPE_CHANNEL))
&& (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL))
{
for (ptr_nick = ptr_channel->nicks; ptr_nick;
ptr_nick = ptr_nick->next_nick)
@@ -585,7 +584,7 @@ completion_list_add_server_nicks (t_completion *completion)
}
/* add current channel nicks at beginning */
if (completion->channel && (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_CHANNEL))
if (completion->channel && (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_CHANNEL))
{
for (ptr_nick = ((t_irc_channel *)(completion->channel))->nicks;
ptr_nick; ptr_nick = ptr_nick->next_nick)
@@ -617,7 +616,7 @@ completion_list_add_channel_nicks (t_completion *completion)
if (completion->channel)
{
if (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_CHANNEL)
if (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_CHANNEL)
{
/* add channel nicks */
for (ptr_nick = ((t_irc_channel *)(completion->channel))->nicks;
@@ -646,8 +645,8 @@ completion_list_add_channel_nicks (t_completion *completion)
((t_irc_server *)(completion->server))->nick,
1, WEELIST_POS_END);
}
if ((((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_DCC_CHAT))
if ((((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_DCC_CHAT))
{
completion_list_add (completion,
((t_irc_channel *)(completion->channel))->name,
@@ -670,7 +669,7 @@ completion_list_add_channel_nicks_hosts (t_completion *completion)
if (completion->channel)
{
if (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_CHANNEL)
if (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_CHANNEL)
{
for (ptr_nick = ((t_irc_channel *)(completion->channel))->nicks;
ptr_nick; ptr_nick = ptr_nick->next_nick)
@@ -693,8 +692,8 @@ completion_list_add_channel_nicks_hosts (t_completion *completion)
}
}
}
if ((((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_PRIVATE))
if ((((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE))
{
completion_list_add (completion,
((t_irc_channel *)(completion->channel))->name,
@@ -854,7 +853,7 @@ completion_list_add_topic (t_completion *completion)
if (cfg_irc_colors_send)
string = (char *)gui_color_decode_for_user_entry ((unsigned char *)((t_irc_channel *)(completion->channel))->topic);
else
string = (char *)gui_color_decode ((unsigned char *)((t_irc_channel *)(completion->channel))->topic, 0);
string = (char *)gui_color_decode ((unsigned char *)((t_irc_channel *)(completion->channel))->topic, 0, 0);
completion_list_add (completion,
(string) ?
string : ((t_irc_channel *)(completion->channel))->topic,
@@ -1020,6 +1019,8 @@ completion_build_list_template (t_completion *completion, char *template)
free (word);
return;
break;
case '*': /* repeat last completion (do nothing there) */
break;
case 'a': /* alias */
completion_list_add_alias (completion);
break;
@@ -1115,8 +1116,10 @@ completion_build_list_template (t_completion *completion, char *template)
void
completion_build_list (t_completion *completion)
{
char *template, *pos_space;
int max_arg, i;
char *template, *pos_template, *pos_space;
int repeat_last, max_arg, i, length;
repeat_last = 0;
completion_get_command_infos (completion, &template, &max_arg);
if (!template || (strcmp (template, "-") == 0) ||
@@ -1125,25 +1128,40 @@ completion_build_list (t_completion *completion)
completion_stop (completion);
return;
}
i = 1;
while (template && template[0])
length = strlen (template);
if (length >= 2)
{
pos_space = strchr (template, ' ');
if (strcmp (template + length - 2, "%*") == 0)
repeat_last = 1;
}
i = 1;
pos_template = template;
while (pos_template && pos_template[0])
{
pos_space = strchr (pos_template, ' ');
if (i == completion->base_command_arg)
{
completion_build_list_template (completion, template);
completion_build_list_template (completion, pos_template);
return;
}
if (pos_space)
{
template = pos_space;
while (template[0] == ' ')
template++;
pos_template = pos_space;
while (pos_template[0] == ' ')
pos_template++;
}
else
template = NULL;
pos_template = NULL;
i++;
}
if (repeat_last)
{
pos_space = rindex (template, ' ');
completion_build_list_template (completion,
(pos_space) ? pos_space + 1 : template);
}
}
/*
@@ -1431,8 +1449,8 @@ completion_nick (t_completion *completion)
completion->context = COMPLETION_NICK;
if ((((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_DCC_CHAT))
if ((((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE)
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_DCC_CHAT))
{
if (!(completion->completion_list))
{
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+8 -9
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* fifo.c: FIFO pipe for WeeChat remote control */
@@ -114,12 +113,12 @@ fifo_exec (char *text)
pos_msg = text + 1;
if (gui_current_window->buffer->has_input)
{
ptr_server = SERVER(gui_current_window->buffer);
ptr_channel = CHANNEL(gui_current_window->buffer);
ptr_server = GUI_SERVER(gui_current_window->buffer);
ptr_channel = GUI_CHANNEL(gui_current_window->buffer);
}
else
{
ptr_server = SERVER(gui_buffers);
ptr_server = GUI_SERVER(gui_buffers);
ptr_channel = NULL;
}
}
@@ -128,7 +127,7 @@ fifo_exec (char *text)
pos_msg = strstr (text, " *");
if (!pos_msg)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
gui_printf (NULL, _("%s invalid text received on FIFO pipe\n"),
WEECHAT_WARNING);
return;
@@ -150,7 +149,7 @@ fifo_exec (char *text)
ptr_server = irc_server_search (text);
if (!ptr_server || !ptr_server->buffer)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
gui_printf (NULL, _("%s server \"%s\" not found (FIFO pipe data)\n"),
WEECHAT_WARNING, text);
return;
@@ -160,7 +159,7 @@ fifo_exec (char *text)
ptr_channel = irc_channel_search_any (ptr_server, pos + 1);
if (!ptr_channel)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
gui_printf (NULL,
_("%s channel \"%s\" not found (FIFO pipe data)\n"),
WEECHAT_WARNING, pos + 1);
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* history.c: memorize commands or text */
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+208 -53
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* hotlist.c: WeeChat hotlist (buffers with activity) */
@@ -25,15 +24,19 @@
#endif
#include <stdlib.h>
#include <string.h>
#include "weechat.h"
#include "hotlist.h"
#include "log.h"
#include "util.h"
#include "weeconfig.h"
#include "../irc/irc.h"
#include "../gui/gui.h"
t_weechat_hotlist *hotlist = NULL;
t_weechat_hotlist *last_hotlist = NULL;
t_weechat_hotlist *weechat_hotlist = NULL;
t_weechat_hotlist *last_weechat_hotlist = NULL;
t_gui_buffer *hotlist_initial_buffer = NULL;
@@ -42,7 +45,7 @@ t_gui_buffer *hotlist_initial_buffer = NULL;
*/
t_weechat_hotlist *
hotlist_search (t_gui_buffer *buffer)
hotlist_search (t_weechat_hotlist *hotlist, t_gui_buffer *buffer)
{
t_weechat_hotlist *ptr_hotlist;
@@ -59,27 +62,128 @@ hotlist_search (t_gui_buffer *buffer)
*/
t_weechat_hotlist *
hotlist_find_pos (t_weechat_hotlist *new_hotlist)
hotlist_find_pos (t_weechat_hotlist *hotlist, t_weechat_hotlist *new_hotlist)
{
t_weechat_hotlist *ptr_hotlist;
for (ptr_hotlist = hotlist; ptr_hotlist; ptr_hotlist = ptr_hotlist->next_hotlist)
switch (cfg_look_hotlist_sort)
{
if (new_hotlist->priority > ptr_hotlist->priority)
return ptr_hotlist;
case CFG_LOOK_HOTLIST_SORT_GROUP_TIME_ASC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((new_hotlist->priority > ptr_hotlist->priority)
|| ((new_hotlist->priority == ptr_hotlist->priority)
&& (get_timeval_diff (&(new_hotlist->creation_time),
&(ptr_hotlist->creation_time)) > 0)))
return ptr_hotlist;
}
break;
case CFG_LOOK_HOTLIST_SORT_GROUP_TIME_DESC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((new_hotlist->priority > ptr_hotlist->priority)
|| ((new_hotlist->priority == ptr_hotlist->priority)
&& (get_timeval_diff (&(new_hotlist->creation_time),
&(ptr_hotlist->creation_time)) < 0)))
return ptr_hotlist;
}
break;
case CFG_LOOK_HOTLIST_SORT_GROUP_NUMBER_ASC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((new_hotlist->priority > ptr_hotlist->priority)
|| ((new_hotlist->priority == ptr_hotlist->priority)
&& (new_hotlist->buffer->number < ptr_hotlist->buffer->number)))
return ptr_hotlist;
}
break;
case CFG_LOOK_HOTLIST_SORT_GROUP_NUMBER_DESC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((new_hotlist->priority > ptr_hotlist->priority)
|| ((new_hotlist->priority == ptr_hotlist->priority)
&& (new_hotlist->buffer->number > ptr_hotlist->buffer->number)))
return ptr_hotlist;
}
break;
case CFG_LOOK_HOTLIST_SORT_NUMBER_ASC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if (new_hotlist->buffer->number < ptr_hotlist->buffer->number)
return ptr_hotlist;
}
break;
case CFG_LOOK_HOTLIST_SORT_NUMBER_DESC:
for (ptr_hotlist = hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if (new_hotlist->buffer->number > ptr_hotlist->buffer->number)
return ptr_hotlist;
}
break;
}
return NULL;
}
/*
* hotlist_add: add a buffer to hotlist, with priority
* hotlist_add_hotlist: add new hotlist in list
*/
void
hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer,
hotlist_add_hotlist (t_weechat_hotlist **hotlist, t_weechat_hotlist **last_hotlist,
t_weechat_hotlist *new_hotlist)
{
t_weechat_hotlist *pos_hotlist;
if (*hotlist)
{
pos_hotlist = hotlist_find_pos (*hotlist, new_hotlist);
if (pos_hotlist)
{
/* insert hotlist into the hotlist (before hotlist found) */
new_hotlist->prev_hotlist = pos_hotlist->prev_hotlist;
new_hotlist->next_hotlist = pos_hotlist;
if (pos_hotlist->prev_hotlist)
pos_hotlist->prev_hotlist->next_hotlist = new_hotlist;
else
*hotlist = new_hotlist;
pos_hotlist->prev_hotlist = new_hotlist;
}
else
{
/* add hotlist to the end */
new_hotlist->prev_hotlist = *last_hotlist;
new_hotlist->next_hotlist = NULL;
(*last_hotlist)->next_hotlist = new_hotlist;
*last_hotlist = new_hotlist;
}
}
else
{
new_hotlist->prev_hotlist = NULL;
new_hotlist->next_hotlist = NULL;
*hotlist = new_hotlist;
*last_hotlist = new_hotlist;
}
}
/*
* hotlist_add: add a buffer to hotlist, with priority
* if creation_time is NULL, current time is used
*/
void
hotlist_add (int priority, struct timeval *creation_time,
t_irc_server *server, t_gui_buffer *buffer,
int allow_current_buffer)
{
t_weechat_hotlist *new_hotlist, *pos_hotlist;
t_weechat_hotlist *new_hotlist, *ptr_hotlist;
if (!buffer)
return;
@@ -89,13 +193,13 @@ hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer,
&& (!allow_current_buffer) && (!gui_buffer_is_scrolled (buffer)))
return;
if ((pos_hotlist = hotlist_search (buffer)))
if ((ptr_hotlist = hotlist_search (weechat_hotlist, buffer)))
{
/* return if priority is greater or equal than the one to add */
if (pos_hotlist->priority >= priority)
if (ptr_hotlist->priority >= priority)
return;
/* remove buffer if present with lower priority and go on */
hotlist_free (pos_hotlist);
hotlist_free (&weechat_hotlist, &last_weechat_hotlist, ptr_hotlist);
}
if ((new_hotlist = (t_weechat_hotlist *) malloc (sizeof (t_weechat_hotlist))) == NULL)
@@ -106,40 +210,66 @@ hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer,
}
new_hotlist->priority = priority;
if (creation_time)
memcpy (&(new_hotlist->creation_time),
creation_time, sizeof (creation_time));
else
gettimeofday (&(new_hotlist->creation_time), NULL);
new_hotlist->server = server;
new_hotlist->buffer = buffer;
new_hotlist->next_hotlist = NULL;
new_hotlist->prev_hotlist = NULL;
if (hotlist)
{
pos_hotlist = hotlist_find_pos (new_hotlist);
if (pos_hotlist)
{
/* insert hotlist into the hotlist (before hotlist found) */
new_hotlist->prev_hotlist = pos_hotlist->prev_hotlist;
new_hotlist->next_hotlist = pos_hotlist;
if (pos_hotlist->prev_hotlist)
pos_hotlist->prev_hotlist->next_hotlist = new_hotlist;
else
hotlist = new_hotlist;
pos_hotlist->prev_hotlist = new_hotlist;
}
else
{
/* add hotlist to the end */
new_hotlist->prev_hotlist = last_hotlist;
new_hotlist->next_hotlist = NULL;
last_hotlist->next_hotlist = new_hotlist;
last_hotlist = new_hotlist;
}
}
else
hotlist_add_hotlist (&weechat_hotlist, &last_weechat_hotlist, new_hotlist);
}
/*
* hotlist_dup: duplicate hotlist element
*/
t_weechat_hotlist *
hotlist_dup (t_weechat_hotlist *hotlist)
{
t_weechat_hotlist *new_hotlist;
if ((new_hotlist = (t_weechat_hotlist *) malloc (sizeof (t_weechat_hotlist))))
{
new_hotlist->priority = hotlist->priority;
memcpy (&(new_hotlist->creation_time), &(hotlist->creation_time),
sizeof (new_hotlist->creation_time));
new_hotlist->server = hotlist->server;
new_hotlist->buffer = hotlist->buffer;
new_hotlist->prev_hotlist = NULL;
new_hotlist->next_hotlist = NULL;
hotlist = new_hotlist;
last_hotlist = new_hotlist;
return new_hotlist;
}
return NULL;
}
/*
* hotlist_resort: resort hotlist with new sort type
*/
void
hotlist_resort ()
{
t_weechat_hotlist *new_hotlist, *last_new_hotlist;
t_weechat_hotlist *ptr_hotlist, *element;
/* copy and resort hotlist in new linked list */
new_hotlist = NULL;
last_new_hotlist = NULL;
for (ptr_hotlist = weechat_hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
element = hotlist_dup (ptr_hotlist);
hotlist_add_hotlist (&new_hotlist, &last_new_hotlist, element);
}
hotlist_free_all (&weechat_hotlist, &last_weechat_hotlist);
weechat_hotlist = new_hotlist;
last_weechat_hotlist = last_new_hotlist;
}
/*
@@ -147,17 +277,18 @@ hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer,
*/
void
hotlist_free (t_weechat_hotlist *ptr_hotlist)
hotlist_free (t_weechat_hotlist **hotlist, t_weechat_hotlist **last_hotlist,
t_weechat_hotlist *ptr_hotlist)
{
t_weechat_hotlist *new_hotlist;
/* remove hotlist from queue */
if (last_hotlist == ptr_hotlist)
last_hotlist = ptr_hotlist->prev_hotlist;
if (*last_hotlist == ptr_hotlist)
*last_hotlist = ptr_hotlist->prev_hotlist;
if (ptr_hotlist->prev_hotlist)
{
(ptr_hotlist->prev_hotlist)->next_hotlist = ptr_hotlist->next_hotlist;
new_hotlist = hotlist;
new_hotlist = *hotlist;
}
else
new_hotlist = ptr_hotlist->next_hotlist;
@@ -166,7 +297,7 @@ hotlist_free (t_weechat_hotlist *ptr_hotlist)
(ptr_hotlist->next_hotlist)->prev_hotlist = ptr_hotlist->prev_hotlist;
free (ptr_hotlist);
hotlist = new_hotlist;
*hotlist = new_hotlist;
}
/*
@@ -174,11 +305,11 @@ hotlist_free (t_weechat_hotlist *ptr_hotlist)
*/
void
hotlist_free_all ()
hotlist_free_all (t_weechat_hotlist **hotlist, t_weechat_hotlist **last_hotlist)
{
/* remove all hotlists */
while (hotlist)
hotlist_free (hotlist);
while (*hotlist)
hotlist_free (hotlist, last_hotlist, *hotlist);
}
/*
@@ -190,7 +321,31 @@ hotlist_remove_buffer (t_gui_buffer *buffer)
{
t_weechat_hotlist *pos_hotlist;
pos_hotlist = hotlist_search (buffer);
pos_hotlist = hotlist_search (weechat_hotlist, buffer);
if (pos_hotlist)
hotlist_free (pos_hotlist);
hotlist_free (&weechat_hotlist, &last_weechat_hotlist, pos_hotlist);
}
/*
* hotlist_print_log: print hotlist in log (usually for crash dump)
*/
void
hotlist_print_log ()
{
t_weechat_hotlist *ptr_hotlist;
for (ptr_hotlist = weechat_hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
weechat_log_printf ("[hotlist (addr:0x%X)]\n", ptr_hotlist);
weechat_log_printf (" priority . . . . . . . : %d\n", ptr_hotlist->priority);
weechat_log_printf (" creation_time. . . . . : tv_sec:%d, tv_usec:%d\n",
ptr_hotlist->creation_time.tv_sec,
ptr_hotlist->creation_time.tv_usec);
weechat_log_printf (" server . . . . . . . . : 0x%X\n", ptr_hotlist->server);
weechat_log_printf (" buffer . . . . . . . . : 0x%X\n", ptr_hotlist->buffer);
weechat_log_printf (" prev_hotlist . . . . . : 0x%X\n", ptr_hotlist->prev_hotlist);
weechat_log_printf (" next_hotlist . . . . . : 0x%X\n", ptr_hotlist->next_hotlist);
}
}
+10 -7
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -34,18 +33,22 @@ struct t_weechat_hotlist
{
int priority; /* 0=crappy msg (join/part), 1=msg, */
/* 2=pv, 3=nick highlight */
struct timeval creation_time; /* time when entry was added */
t_irc_server *server; /* associated server */
t_gui_buffer *buffer; /* associated buffer */
t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
t_weechat_hotlist *next_hotlist; /* link to next hotlist */
};
extern t_weechat_hotlist *hotlist;
extern t_weechat_hotlist *weechat_hotlist;
extern t_weechat_hotlist *last_weechat_hotlist;
extern t_gui_buffer *hotlist_initial_buffer;
extern void hotlist_add (int, t_irc_server *, t_gui_buffer *, int);
extern void hotlist_free (t_weechat_hotlist *);
extern void hotlist_free_all ();
extern void hotlist_add (int, struct timeval *, t_irc_server *, t_gui_buffer *, int);
extern void hotlist_resort ();
extern void hotlist_free (t_weechat_hotlist **, t_weechat_hotlist **, t_weechat_hotlist *);
extern void hotlist_free_all (t_weechat_hotlist **, t_weechat_hotlist **);
extern void hotlist_remove_buffer (t_gui_buffer *);
extern void hotlist_print_log ();
#endif /* hotlist.h */
+11 -8
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* log.c: WeeChat log file */
@@ -28,6 +27,7 @@
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#ifdef HAVE_FLOCK
#include <sys/file.h>
@@ -80,11 +80,14 @@ weechat_log_open (char *filename, char *mode)
#ifdef HAVE_FLOCK
if ((flock (fileno (weechat_log_file), LOCK_EX | LOCK_NB) != 0))
{
fclose (weechat_log_file);
weechat_log_file = NULL;
free (weechat_log_filename);
weechat_log_filename = NULL;
return 0;
if (errno == EWOULDBLOCK)
{
fclose (weechat_log_file);
weechat_log_file = NULL;
free (weechat_log_filename);
weechat_log_filename = NULL;
return 0;
}
}
#endif
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+24 -14
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* session.c: save/restore session data */
@@ -220,7 +219,7 @@ session_save_servers (FILE *file)
rc = rc && (session_write_int (file, SESSION_SERV_AUTOCONNECT, ptr_server->autoconnect));
rc = rc && (session_write_int (file, SESSION_SERV_AUTORECONNECT, ptr_server->autoreconnect));
rc = rc && (session_write_int (file, SESSION_SERV_AUTORECONNECT_DELAY, ptr_server->autoreconnect_delay));
rc = rc && (session_write_int (file, SESSION_SERV_COMMAND_LINE, ptr_server->command_line));
rc = rc && (session_write_int (file, SESSION_SERV_TEMP_SERVER, ptr_server->temp_server));
rc = rc && (session_write_str (file, SESSION_SERV_ADDRESS, ptr_server->address));
rc = rc && (session_write_int (file, SESSION_SERV_PORT, ptr_server->port));
rc = rc && (session_write_int (file, SESSION_SERV_IPV6, ptr_server->ipv6));
@@ -261,6 +260,7 @@ session_save_servers (FILE *file)
rc = rc && (session_write_str (file, SESSION_SERV_NICK_MODES, ptr_server->nick_modes));
rc = rc && (session_write_str (file, SESSION_SERV_PREFIX, ptr_server->prefix));
rc = rc && (session_write_buf (file, SESSION_SERV_RECONNECT_START, &(ptr_server->reconnect_start), sizeof (time_t)));
rc = rc && (session_write_buf (file, SESSION_SERV_COMMAND_TIME, &(ptr_server->command_time), sizeof (time_t)));
rc = rc && (session_write_int (file, SESSION_SERV_RECONNECT_JOIN, ptr_server->reconnect_join));
rc = rc && (session_write_int (file, SESSION_SERV_IS_AWAY, ptr_server->is_away));
rc = rc && (session_write_str (file, SESSION_SERV_AWAY_MESSAGE, ptr_server->away_message));
@@ -295,7 +295,7 @@ session_save_dcc (FILE *file)
rc = 1;
for (ptr_dcc = last_dcc; ptr_dcc;
for (ptr_dcc = irc_last_dcc; ptr_dcc;
ptr_dcc = ptr_dcc->prev_dcc)
{
rc = rc && (session_write_id (file, SESSION_OBJ_DCC));
@@ -399,8 +399,8 @@ session_save_buffers (FILE *file)
ptr_buffer = ptr_buffer->next_buffer)
{
rc = rc && (session_write_id (file, SESSION_OBJ_BUFFER));
rc = rc && (session_write_str (file, SESSION_BUFF_SERVER, SERVER(ptr_buffer) ? SERVER(ptr_buffer)->name : NULL));
rc = rc && (session_write_str (file, SESSION_BUFF_CHANNEL, CHANNEL(ptr_buffer) ? CHANNEL(ptr_buffer)->name : NULL));
rc = rc && (session_write_str (file, SESSION_BUFF_SERVER, GUI_SERVER(ptr_buffer) ? GUI_SERVER(ptr_buffer)->name : NULL));
rc = rc && (session_write_str (file, SESSION_BUFF_CHANNEL, GUI_CHANNEL(ptr_buffer) ? GUI_CHANNEL(ptr_buffer)->name : NULL));
rc = rc && (session_write_int (file, SESSION_BUFF_TYPE, ptr_buffer->type));
rc = rc && (session_write_int (file, SESSION_BUFF_ALL_SERVERS, ptr_buffer->all_servers));
rc = rc && (session_write_id (file, SESSION_BUFF_END));
@@ -450,13 +450,14 @@ session_save_hotlist (FILE *file)
rc = 1;
for (ptr_hotlist = hotlist; ptr_hotlist;
for (ptr_hotlist = weechat_hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
rc = rc && (session_write_id (file, SESSION_OBJ_HOTLIST));
rc = rc && (session_write_int (file, SESSION_HOTL_PRIORITY, ptr_hotlist->priority));
rc = rc && (session_write_str (file, SESSION_HOTL_SERVER, (ptr_hotlist->server) ? ptr_hotlist->server->name : NULL));
rc = rc && (session_write_int (file, SESSION_HOTL_BUFFER_NUMBER, ptr_hotlist->buffer->number));
rc = rc && (session_write_buf (file, SESSION_HOTL_CREATION_TIME, &(ptr_hotlist->creation_time), sizeof (struct timeval)));
rc = rc && (session_write_id (file, SESSION_HOTL_END));
if (!rc)
@@ -881,8 +882,8 @@ session_load_server (FILE *file)
case SESSION_SERV_AUTORECONNECT_DELAY:
rc = rc && (session_read_int (file, &(session_current_server->autoreconnect_delay)));
break;
case SESSION_SERV_COMMAND_LINE:
rc = rc && (session_read_int (file, &(session_current_server->command_line)));
case SESSION_SERV_TEMP_SERVER:
rc = rc && (session_read_int (file, &(session_current_server->temp_server)));
break;
case SESSION_SERV_ADDRESS:
rc = rc && (session_read_str (file, &(session_current_server->address)));
@@ -993,6 +994,9 @@ session_load_server (FILE *file)
case SESSION_SERV_RECONNECT_START:
rc = rc && (session_read_buf (file, &(session_current_server->reconnect_start), sizeof (time_t)));
break;
case SESSION_SERV_COMMAND_TIME:
rc = rc && (session_read_buf (file, &(session_current_server->command_time), sizeof (time_t)));
break;
case SESSION_SERV_RECONNECT_JOIN:
rc = rc && (session_read_int (file, &(session_current_server->reconnect_join)));
break;
@@ -1165,7 +1169,7 @@ session_load_nick (FILE *file)
/* allocate nick */
nick = irc_nick_new (session_current_server, session_current_channel,
nick_name, 0, 0, 0, 0, 0, 0);
nick_name, 0, 0, 0, 0, 0, 0, 0);
free (nick_name);
if (!nick)
{
@@ -1654,12 +1658,15 @@ session_load_hotlist (FILE *file)
{
int object_id, rc;
int priority;
struct timeval creation_time;
char *server_name;
t_irc_server *ptr_server;
int buffer_number;
t_gui_buffer *ptr_buffer;
priority = 0;
creation_time.tv_sec = 0;
creation_time.tv_usec = 0;
ptr_server = NULL;
ptr_buffer = NULL;
@@ -1677,7 +1684,7 @@ session_load_hotlist (FILE *file)
switch (object_id)
{
case SESSION_HOTL_END:
hotlist_add (priority, ptr_server, ptr_buffer, 1);
hotlist_add (priority, &creation_time, ptr_server, ptr_buffer, 1);
return 1;
case SESSION_HOTL_PRIORITY:
rc = rc && (session_read_int (file, &priority));
@@ -1693,6 +1700,9 @@ session_load_hotlist (FILE *file)
rc = rc && (session_read_int (file, &buffer_number));
ptr_buffer = gui_buffer_search_by_number (buffer_number);
break;
case SESSION_HOTL_CREATION_TIME:
rc = rc && (session_read_buf (file, &creation_time, sizeof (struct timeval)));
break;
default:
weechat_log_printf (_("session: warning: ignoring value from "
"history (object id: %d)\n"),
@@ -1843,13 +1853,13 @@ session_load (char *filename)
if (unlink (filename) < 0)
{
irc_display_prefix (NULL, gui_current_window->buffer, PREFIX_ERROR);
irc_display_prefix (NULL, gui_current_window->buffer, GUI_PREFIX_ERROR);
gui_printf_nolog (gui_current_window->buffer,
_("%s can't delete session file (%s)\n"),
WEECHAT_ERROR, filename);
}
irc_display_prefix (NULL, gui_current_window->buffer, PREFIX_INFO);
irc_display_prefix (NULL, gui_current_window->buffer, GUI_PREFIX_INFO);
gui_printf_nolog (gui_current_window->buffer,
_("Upgrade completed successfully\n"));
+7 -6
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -55,7 +54,7 @@ enum t_session_server
SESSION_SERV_AUTOCONNECT,
SESSION_SERV_AUTORECONNECT,
SESSION_SERV_AUTORECONNECT_DELAY,
SESSION_SERV_COMMAND_LINE,
SESSION_SERV_TEMP_SERVER,
SESSION_SERV_ADDRESS,
SESSION_SERV_PORT,
SESSION_SERV_IPV6,
@@ -93,7 +92,8 @@ enum t_session_server
SESSION_SERV_HOSTNAME,
SESSION_SERV_NICK_MODES,
SESSION_SERV_AWAY_MESSAGE,
SESSION_SERV_PREFIX
SESSION_SERV_PREFIX,
SESSION_SERV_COMMAND_TIME
};
enum t_session_channel
@@ -195,7 +195,8 @@ enum t_session_hotlist
SESSION_HOTL_END = 0,
SESSION_HOTL_PRIORITY,
SESSION_HOTL_SERVER,
SESSION_HOTL_BUFFER_NUMBER
SESSION_HOTL_BUFFER_NUMBER,
SESSION_HOTL_CREATION_TIME
};
int session_save (char *filename);
+42 -13
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* utf8.c: UTF-8 string functions for WeeChat */
@@ -27,16 +26,6 @@
#include <stdlib.h>
#include <string.h>
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#if defined(__OpenBSD__)
#include <utf8/wchar.h>
#else
#include <wchar.h>
#endif
#include "weechat.h"
#include "utf8.h"
#include "util.h"
@@ -395,3 +384,43 @@ utf8_pos (char *string, int real_pos)
}
return count;
}
/*
* utf8_get_wc: get wide char from string (first char)
*/
wint_t
utf8_get_wc (char *string)
{
int char_size;
wint_t result;
if (!string || !string[0])
return WEOF;
char_size = utf8_char_size (string);
switch (char_size)
{
case 1:
result = (wint_t)string[0];
break;
case 2:
result = ((wint_t)((unsigned char)string[0])) << 8
| ((wint_t)((unsigned char)string[1]));
break;
case 3:
result = ((wint_t)((unsigned char)string[0])) << 16
| ((wint_t)((unsigned char)string[1])) << 8
| ((wint_t)((unsigned char)string[2]));
break;
case 4:
result = ((wint_t)((unsigned char)string[0])) << 24
| ((wint_t)((unsigned char)string[1])) << 16
| ((wint_t)((unsigned char)string[2])) << 8
| ((wint_t)((unsigned char)string[3]));
break;
default:
result = WEOF;
}
return result;
}
+13 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,14 +13,23 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WEECHAT_UTF8_H
#define __WEECHAT_UTF8_H 1
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#if defined(__OpenBSD__)
#include <utf8/wchar.h>
#else
#include <wchar.h>
#endif
extern int local_utf8;
extern void utf8_init ();
@@ -36,5 +45,6 @@ extern int utf8_width_screen (char *);
extern char *utf8_add_offset (char *, int);
extern int utf8_real_pos (char *, int);
extern int utf8_pos (char *, int);
extern wint_t utf8_get_wc (char *);
#endif /* utf8.h */
+75 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* util.c: some useful functions for WeeChat */
@@ -28,6 +27,7 @@
#include <errno.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#ifdef HAVE_ICONV
#include <iconv.h>
@@ -292,6 +292,7 @@ weechat_iconv (int from_utf8, char *from_code, char *to_code, char *string)
outbuf = strdup (string);
#else
/* make C compiler happy */
(void) from_utf8;
(void) from_code;
(void) to_code;
outbuf = strdup (string);
@@ -442,6 +443,77 @@ weechat_strreplace (char *string, char *search, char *replace)
return new_string;
}
/*
* weechat_convert_hex_chars: convert hex chars (\x??) to value
*/
char *
weechat_convert_hex_chars (char *string)
{
char *output, hex_str[8], *error;
int pos_output;
long number;
output = (char *)malloc (strlen (string) + 1);
if (output)
{
pos_output = 0;
while (string && string[0])
{
if (string[0] == '\\')
{
string++;
switch (string[0])
{
case '\\':
output[pos_output++] = '\\';
string++;
break;
case 'x':
case 'X':
if (isxdigit (string[1])
&& isxdigit (string[2]))
{
snprintf (hex_str, sizeof (hex_str),
"0x%c%c", string[1], string[2]);
number = strtol (hex_str, &error, 16);
if ((error) && (error[0] == '\0'))
{
output[pos_output++] = number;
string += 3;
}
else
{
output[pos_output++] = '\\';
output[pos_output++] = string[0];
string++;
}
}
else
{
output[pos_output++] = string[0];
string++;
}
break;
default:
output[pos_output++] = '\\';
output[pos_output++] = string[0];
string++;
break;
}
}
else
{
output[pos_output++] = string[0];
string++;
}
}
output[pos_output] = '\0';
}
return output;
}
/*
* get_timeval_diff: calculates difference between two times (return in milliseconds)
*/
+3 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -34,6 +33,7 @@ extern char *weechat_iconv_to_internal (char *, char *);
extern char *weechat_iconv_from_internal (char *, char *);
extern void weechat_iconv_fprintf (FILE *, char *, ...);
extern char *weechat_strreplace (char *, char *, char *);
extern char *weechat_convert_hex_chars (char *);
extern long get_timeval_diff (struct timeval *, struct timeval *);
extern char **explode_string (char *, char *, int, int *);
extern void free_exploded_string (char **);
+45 -19
View File
@@ -19,7 +19,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -28,8 +28,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* weechat.c: core functions for WeeChat */
@@ -60,6 +59,7 @@
#include "backtrace.h"
#include "command.h"
#include "fifo.h"
#include "hotlist.h"
#include "log.h"
#include "session.h"
#include "utf8.h"
@@ -187,8 +187,22 @@ weechat_display_config_options ()
weechat_options[i][j].default_string : _("empty"));
break;
case OPTION_TYPE_STRING:
weechat_iconv_fprintf (stdout, _(" . type: string\n"));
weechat_iconv_fprintf (stdout, _(" . values: any string\n"));
switch (weechat_options[i][j].max)
{
case 0:
weechat_iconv_fprintf (stdout, _(" . type: string\n"));
weechat_iconv_fprintf (stdout, _(" . values: any string\n"));
break;
case 1:
weechat_iconv_fprintf (stdout, _(" . type: char\n"));
weechat_iconv_fprintf (stdout, _(" . values: any char\n"));
break;
default:
weechat_iconv_fprintf (stdout, _(" . type: string\n"));
weechat_iconv_fprintf (stdout, _(" . values: any string (limit: %d chars)\n"),
weechat_options[i][j].max);
break;
}
weechat_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
(weechat_options[i][j].default_string) ?
weechat_options[i][j].default_string : _("empty"));
@@ -554,10 +568,6 @@ weechat_init_vars ()
/* start time, used by /uptime command */
weechat_start_time = time (NULL);
/* init received messages queue */
recv_msgq = NULL;
msgq_last_msg = NULL;
/* init gnutls */
#ifdef HAVE_GNUTLS
gnutls_global_init ();
@@ -604,17 +614,17 @@ weechat_welcome_message ()
"%s __ | /| / /_ _ \\ _ \\ / __ __ \\ __ `/ __/\n"
"%s __ |/ |/ / / __/ __/ /___ _ / / / /_/ // /_ \n"
"%s ____/|__/ \\___/\\___/\\____/ /_/ /_/\\__,_/ \\__/ \n",
GUI_COLOR(COLOR_WIN_CHAT_NICK),
GUI_COLOR(COLOR_WIN_CHAT_NICK),
GUI_COLOR(COLOR_WIN_CHAT_NICK),
GUI_COLOR(COLOR_WIN_CHAT_NICK),
GUI_COLOR(COLOR_WIN_CHAT_NICK));
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK));
}
if (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0])
{
gui_printf (NULL, _("%sWelcome to %s%s%s, %s\n"),
(cfg_look_startup_logo) ? " " : "",
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
GUI_COLOR(GUI_COLOR_WIN_CHAT_CHANNEL),
PACKAGE_NAME,
GUI_NO_COLOR,
cfg_look_weechat_slogan);
@@ -623,7 +633,7 @@ weechat_welcome_message ()
{
gui_printf (NULL, "%s%s%s%s, %s %s %s\n",
(cfg_look_startup_logo) ? " " : "",
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
GUI_COLOR(GUI_COLOR_WIN_CHAT_CHANNEL),
PACKAGE_STRING,
GUI_NO_COLOR,
_("compiled on"), __DATE__, __TIME__);
@@ -633,7 +643,7 @@ weechat_welcome_message ()
cfg_look_startup_version)
gui_printf (NULL,
"%s-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n",
GUI_COLOR(COLOR_WIN_CHAT_NICK));
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK));
weechat_log_printf ("%s (%s %s %s)\n",
PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
@@ -679,6 +689,9 @@ weechat_dump (int crash)
t_irc_nick *ptr_nick;
t_gui_window *ptr_window;
t_gui_buffer *ptr_buffer;
#ifdef PLUGINS
t_weechat_plugin *ptr_plugin;
#endif
/* prevent reentrance */
if (sigsegv)
@@ -747,7 +760,8 @@ weechat_dump (int crash)
gui_window_print_log (ptr_window);
}
for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
for (ptr_buffer = gui_buffers; ptr_buffer;
ptr_buffer = ptr_buffer->next_buffer)
{
weechat_log_printf ("\n");
gui_buffer_print_log (ptr_buffer);
@@ -756,6 +770,18 @@ weechat_dump (int crash)
weechat_log_printf ("\n");
irc_ignore_print_log ();
weechat_log_printf ("\n");
hotlist_print_log ();
#ifdef PLUGINS
for (ptr_plugin = weechat_plugins; ptr_plugin;
ptr_plugin = ptr_plugin->next_plugin)
{
weechat_log_printf ("\n");
plugin_print_log (ptr_plugin);
}
#endif
weechat_log_printf ("\n");
weechat_log_printf ("****** End of dump ******\n");
weechat_log_printf ("\n");
@@ -801,8 +827,8 @@ weechat_sigsegv ()
int
main (int argc, char *argv[])
{
#ifdef ENABLE_NLS
setlocale (LC_ALL, ""); /* initialize gettext */
#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
bind_textdomain_codeset (PACKAGE, "UTF-8");
textdomain (PACKAGE);
+11 -10
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -32,22 +31,25 @@
#include <gnutls/gnutls.h>
#endif
#include <locale.h>
#if defined(ENABLE_NLS) && !defined(_)
#include <locale.h>
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#else
#include "../../intl/libintl.h"
#endif
#define _(x) gettext(x)
#define _(string) gettext(string)
#define NG_(single,plural,number) ngettext(single,plural,number)
#ifdef gettext_noop
#define N_(string) gettext_noop (string)
#define N_(string) gettext_noop(string)
#else
#define N_(string) (string)
#endif
#endif
#if !defined(_)
#define _(x) (x)
#define _(string) (string)
#define NG_(single,plural,number) (plural)
#define N_(string) (string)
#endif
@@ -69,7 +71,7 @@
"\nDeveloped by FlashCode <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
"This program 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 2 of the License, or\n" \
"the Free Software Foundation; either version 3 of the License, or\n" \
"(at your option) any later version.\n" \
"\n", \
\
@@ -79,8 +81,7 @@
"GNU General Public License for more details.\n" \
"\n" \
"You should have received a copy of the GNU General Public License\n" \
"along with this program; if not, write to the Free Software\n" \
"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n\n"
"along with this program. If not, see <http://www.gnu.org/licenses/>.\n\n"
/* directory separator, depending on OS */
+65 -22
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* weeconfig.c: WeeChat configuration */
@@ -40,6 +39,7 @@
#include "alias.h"
#include "command.h"
#include "fifo.h"
#include "hotlist.h"
#include "log.h"
#include "utf8.h"
#include "util.h"
@@ -95,6 +95,7 @@ char *cfg_look_align_nick_values[] =
int cfg_look_align_other;
int cfg_look_align_size;
int cfg_look_align_size_max;
int cfg_look_align_text_offset;
char *cfg_look_nick_completor;
char *cfg_look_nick_completion_ignore;
int cfg_look_nick_completion_smart;
@@ -106,10 +107,16 @@ int cfg_look_infobar_delay_highlight;
int cfg_look_hotlist_names_count;
int cfg_look_hotlist_names_level;
int cfg_look_hotlist_names_length;
int cfg_look_hotlist_sort;
char *cfg_look_hotlist_sort_values[] =
{ "group_time_asc", "group_time_desc",
"group_number_asc", "group_number_desc",
"number_asc", "number_desc" };
int cfg_look_day_change;
char *cfg_look_day_change_timestamp;
char *cfg_look_read_marker;
char *cfg_look_input_format;
int cfg_look_paste_max_lines;
t_config_option weechat_options_look[] =
{ { "look_save_on_exit", N_("save config file on exit"),
@@ -171,7 +178,7 @@ t_config_option weechat_options_look[] =
NULL, NULL, &cfg_look_nicklist_min_size, NULL, config_change_buffers },
{ "look_nicklist_max_size", N_("max size for nicklist"),
N_("max size for nicklist (width or height, depending on look_nicklist_position "
"(0 = no max size; if min == max and > 0, then size is fixed))"),
"(0 = no max size; if min = max and > 0, then size is fixed))"),
OPTION_TYPE_INT, 0, 100, 0,
NULL, NULL, &cfg_look_nicklist_max_size, NULL, config_change_buffers },
{ "look_nicklist_separator", N_("separator between chat and nicklist"),
@@ -215,6 +222,13 @@ t_config_option weechat_options_look[] =
"look_align_size)"),
OPTION_TYPE_INT, 8, 64, 20,
NULL, NULL, &cfg_look_align_size_max, NULL, config_change_noop },
{ "look_align_text_offset", N_("offset for aligning lines of messages "
"(except first lines)"),
N_("offset for aligning lines of messages (except first lines), default is "
"-1 (align after nick), a null or positive value is offset after "
"beginning of line"),
OPTION_TYPE_INT, -1, 64, -1,
NULL, NULL, &cfg_look_align_text_offset, NULL, config_change_buffers },
{ "look_nick_completor", N_("the string inserted after nick completion"),
N_("the string inserted after nick completion"),
OPTION_TYPE_STRING, 0, 0, 0,
@@ -261,6 +275,11 @@ t_config_option weechat_options_look[] =
N_("max length of names in hotlist (0 = no limit)"),
OPTION_TYPE_INT, 0, 32, 0,
NULL, NULL, &cfg_look_hotlist_names_length, NULL, config_change_buffer_content },
{ "look_hotlist_sort", N_("hotlist sort type"),
N_("hotlist sort type (group_time_asc (default), group_time_desc, "
"group_number_asc, group_number_desc, number_asc, number_desc)"),
OPTION_TYPE_INT_WITH_STRING, 0, 0, 0,
"group_time_asc", cfg_look_hotlist_sort_values, &cfg_look_hotlist_sort, NULL, config_change_hotlist },
{ "look_day_change", N_("display special message when day changes"),
N_("display special message when day changes"),
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
@@ -271,13 +290,17 @@ t_config_option weechat_options_look[] =
"%a, %d %b %Y", NULL, NULL, &cfg_look_day_change_timestamp, config_change_noop },
{ "look_read_marker", N_("use a marker on servers/channels to show first unread line"),
N_("use a marker on servers/channels to show first unread line"),
OPTION_TYPE_STRING, 0, 0, 0,
OPTION_TYPE_STRING, 0, 1, 0,
" ", NULL, NULL, &cfg_look_read_marker, config_change_read_marker },
{ "look_input_format", N_("format for input prompt"),
N_("format for input prompt ('%c' is replaced by channel or server, "
"'%n' by nick and '%m' by nick modes)"),
OPTION_TYPE_STRING, 0, 0, 0,
"[%n(%m)] ", NULL, NULL, &cfg_look_input_format, config_change_buffer_content },
{ "look_paste_max_lines", N_("max number of lines for paste without asking user"),
N_("max number of lines for paste without asking user (0 = disable this feature)"),
OPTION_TYPE_INT, 0, INT_MAX, 3,
NULL, NULL, &cfg_look_paste_max_lines, NULL, &config_change_noop },
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL }
};
@@ -323,6 +346,7 @@ int cfg_col_input_channel;
int cfg_col_input_nick;
int cfg_col_input_delimiters;
int cfg_col_input_text_not_found;
int cfg_col_input_actions;
int cfg_col_input_bg;
int cfg_col_nick;
int cfg_col_nick_away;
@@ -331,10 +355,11 @@ int cfg_col_nick_chanadmin;
int cfg_col_nick_op;
int cfg_col_nick_halfop;
int cfg_col_nick_voice;
int cfg_col_nick_user;
int cfg_col_nick_more;
int cfg_col_nick_sep;
int cfg_col_nick_self;
int cfg_col_nick_colors[COLOR_WIN_NICK_NUMBER];
int cfg_col_nick_colors[GUI_COLOR_WIN_NICK_NUMBER];
int cfg_col_nick_private;
int cfg_col_nick_bg;
int cfg_col_nicklist_bg;
@@ -519,6 +544,10 @@ t_config_option weechat_options_colors[] =
N_("color for text not found"),
OPTION_TYPE_COLOR, 0, 0, 0,
"red", NULL, &cfg_col_input_text_not_found, NULL, &config_change_color },
{ "col_input_actions", N_("color for actions in input window"),
N_("color for actions in input window"),
OPTION_TYPE_COLOR, 0, 0, 0,
"lightgreen", NULL, &cfg_col_input_actions, NULL, &config_change_color },
{ "col_input_bg", N_("background for input window"),
N_("background for input window"),
OPTION_TYPE_COLOR, 0, 0, 0,
@@ -553,6 +582,10 @@ t_config_option weechat_options_colors[] =
N_("color for voice symbol"),
OPTION_TYPE_COLOR, 0, 0, 0,
"yellow", NULL, &cfg_col_nick_voice, NULL, &config_change_color },
{ "col_nick_user", N_("color for user symbol"),
N_("color for user symbol"),
OPTION_TYPE_COLOR, 0, 0, 0,
"blue", NULL, &cfg_col_nick_user, NULL, &config_change_color },
{ "col_nick_more", N_("color for '+' when scrolling nicks"),
N_("color for '+' when scrolling nicks"),
OPTION_TYPE_COLOR, 0, 0, 0,
@@ -795,8 +828,8 @@ t_config_option weechat_options_irc[] =
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
NULL, NULL, &cfg_irc_colors_receive, NULL, config_change_noop },
{ "irc_colors_send", N_("allow user to send colors"),
N_("allow user to send colors with special codes (%B=bold, %Cxx,yy=color, "
"%U=underline, %R=reverse)"),
N_("allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, "
"^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)"),
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
NULL, NULL, &cfg_irc_colors_send, NULL, config_change_noop },
{ "irc_send_unknown_commands", N_("send unknown commands to IRC server"),
@@ -836,7 +869,7 @@ t_config_option weechat_options_dcc[] =
NULL, NULL, &cfg_dcc_timeout, NULL, &config_change_noop },
{ "dcc_blocksize", N_("block size for dcc packets"),
N_("block size for dcc packets in bytes (default: 65536)"),
OPTION_TYPE_INT, DCC_MIN_BLOCKSIZE, DCC_MAX_BLOCKSIZE, 65536,
OPTION_TYPE_INT, IRC_DCC_MIN_BLOCKSIZE, IRC_DCC_MAX_BLOCKSIZE, 65536,
NULL, NULL, &cfg_dcc_blocksize, NULL, &config_change_noop },
{ "dcc_fast_send", N_("does not wait for ACK when sending file"),
N_("does not wait for ACK when sending file"),
@@ -1024,7 +1057,7 @@ t_config_option weechat_options_server[] =
"", NULL, NULL, &(cfg_server.command), NULL },
{ "server_command_delay", N_("delay (in seconds) after command was executed"),
N_("delay (in seconds) after command was executed (example: give some time for authentication)"),
OPTION_TYPE_INT, 0, 5, 0,
OPTION_TYPE_INT, 0, 3600, 0,
NULL, NULL, &(cfg_server.command_delay), NULL, NULL },
{ "server_autojoin", N_("list of channels to join when connected to server"),
N_("comma separated list of channels to join when connected to server (example: \"#chan1,#chan2,#chan3 key1,key2\")"),
@@ -1160,6 +1193,17 @@ config_change_buffer_content ()
gui_window_redraw_buffer (gui_current_window->buffer);
}
/*
* config_change_hotlist: called when hotlist changes
*/
void
config_change_hotlist ()
{
hotlist_resort ();
gui_status_draw (gui_current_window->buffer, 1);
}
/*
* config_change_read_marker: called when read marker is changed
*/
@@ -1167,10 +1211,7 @@ config_change_buffer_content ()
void
config_change_read_marker ()
{
t_gui_window *ptr_win;
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
gui_window_redraw_buffer (ptr_win->buffer);
gui_window_redraw_all_buffers ();
}
/*
@@ -1221,7 +1262,7 @@ config_change_nicks_colors ()
for (ptr_nick = ptr_channel->nicks; ptr_nick;
ptr_nick = ptr_nick->next_nick)
{
if (ptr_nick->color != COLOR_WIN_NICK_SELF)
if (ptr_nick->color != GUI_COLOR_WIN_NICK_SELF)
ptr_nick->color = irc_nick_find_color (ptr_nick);
}
}
@@ -1241,7 +1282,7 @@ config_change_away_check ()
/* reset away flag for all nicks/chans/servers */
irc_server_remove_away ();
}
check_away = cfg_irc_away_check * 60;
irc_check_away = cfg_irc_away_check * 60;
}
/*
@@ -1274,9 +1315,9 @@ config_change_notify_levels ()
for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
{
if (BUFFER_IS_CHANNEL(ptr_buffer) || BUFFER_IS_PRIVATE(ptr_buffer))
if (GUI_BUFFER_IS_CHANNEL(ptr_buffer) || GUI_BUFFER_IS_PRIVATE(ptr_buffer))
ptr_buffer->notify_level =
irc_channel_get_notify_level (SERVER(ptr_buffer), CHANNEL(ptr_buffer));
irc_channel_get_notify_level (GUI_SERVER(ptr_buffer), GUI_CHANNEL(ptr_buffer));
}
}
@@ -1292,21 +1333,21 @@ config_change_log ()
for (ptr_buffer = gui_buffers; ptr_buffer;
ptr_buffer = ptr_buffer->next_buffer)
{
if (BUFFER_IS_SERVER(ptr_buffer))
if (GUI_BUFFER_IS_SERVER(ptr_buffer))
{
if (cfg_log_auto_server && !ptr_buffer->log_file)
gui_log_start (ptr_buffer);
else if (!cfg_log_auto_server && ptr_buffer->log_file)
gui_log_end (ptr_buffer);
}
if (BUFFER_IS_CHANNEL(ptr_buffer))
if (GUI_BUFFER_IS_CHANNEL(ptr_buffer))
{
if (cfg_log_auto_channel && !ptr_buffer->log_file)
gui_log_start (ptr_buffer);
else if (!cfg_log_auto_channel && ptr_buffer->log_file)
gui_log_end (ptr_buffer);
}
if (BUFFER_IS_PRIVATE(ptr_buffer))
if (GUI_BUFFER_IS_PRIVATE(ptr_buffer))
{
if (cfg_log_auto_private && !ptr_buffer->log_file)
gui_log_start (ptr_buffer);
@@ -1389,6 +1430,8 @@ config_option_set_value (t_config_option *option, char *value)
return -1;
break;
case OPTION_TYPE_STRING:
if ((option->max > 0) && (utf8_strlen (value) > option->max))
return -1;
if (*(option->ptr_string))
free (*(option->ptr_string));
*(option->ptr_string) = strdup (value);
@@ -2505,7 +2548,7 @@ config_write (char *config_name)
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
{
if (!ptr_server->command_line)
if (!ptr_server->temp_server)
{
weechat_iconv_fprintf (file, "\n[server]\n");
weechat_iconv_fprintf (file, "server_name = \"%s\"\n", ptr_server->name);
+16 -4
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -58,6 +57,13 @@
#define CFG_LOOK_ALIGN_NICK_LEFT 1
#define CFG_LOOK_ALIGN_NICK_RIGHT 2
#define CFG_LOOK_HOTLIST_SORT_GROUP_TIME_ASC 0
#define CFG_LOOK_HOTLIST_SORT_GROUP_TIME_DESC 1
#define CFG_LOOK_HOTLIST_SORT_GROUP_NUMBER_ASC 2
#define CFG_LOOK_HOTLIST_SORT_GROUP_NUMBER_DESC 3
#define CFG_LOOK_HOTLIST_SORT_NUMBER_ASC 4
#define CFG_LOOK_HOTLIST_SORT_NUMBER_DESC 5
#define CFG_IRC_DISPLAY_AWAY_OFF 0
#define CFG_IRC_DISPLAY_AWAY_LOCAL 1
#define CFG_IRC_DISPLAY_AWAY_CHANNEL 2
@@ -112,6 +118,7 @@ extern int cfg_look_align_nick;
extern int cfg_look_align_other;
extern int cfg_look_align_size;
extern int cfg_look_align_size_max;
extern int cfg_look_align_text_offset;
extern char *cfg_look_nick_completor;
extern char *cfg_look_nick_completion_ignore;
extern int cfg_look_nick_completion_smart;
@@ -123,10 +130,12 @@ extern int cfg_look_infobar_delay_highlight;
extern int cfg_look_hotlist_names_count;
extern int cfg_look_hotlist_names_level;
extern int cfg_look_hotlist_names_length;
extern int cfg_look_hotlist_sort;
extern int cfg_look_day_change;
extern char *cfg_look_day_change_timestamp;
extern char *cfg_look_read_marker;
extern char *cfg_look_input_format;
extern int cfg_look_paste_max_lines;
extern int cfg_col_real_white;
extern int cfg_col_separator;
@@ -168,6 +177,7 @@ extern int cfg_col_input_channel;
extern int cfg_col_input_nick;
extern int cfg_col_input_delimiters;
extern int cfg_col_input_text_not_found;
extern int cfg_col_input_actions;
extern int cfg_col_input_bg;
extern int cfg_col_nick;
extern int cfg_col_nick_away;
@@ -176,10 +186,11 @@ extern int cfg_col_nick_chanadmin;
extern int cfg_col_nick_op;
extern int cfg_col_nick_halfop;
extern int cfg_col_nick_voice;
extern int cfg_col_nick_user;
extern int cfg_col_nick_more;
extern int cfg_col_nick_sep;
extern int cfg_col_nick_self;
extern int cfg_col_nick_colors[COLOR_WIN_NICK_NUMBER];
extern int cfg_col_nick_colors[GUI_COLOR_WIN_NICK_NUMBER];
extern int cfg_col_nick_private;
extern int cfg_col_nick_bg;
extern int cfg_col_dcc_selected;
@@ -254,6 +265,7 @@ extern void config_change_save_on_exit ();
extern void config_change_title ();
extern void config_change_buffers ();
extern void config_change_buffer_content ();
extern void config_change_hotlist ();
extern void config_change_read_marker ();
extern void config_change_charset ();
extern void config_change_one_server_buffer ();
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* weelist.c: sorted lists management */
+2 -3
View File
@@ -4,7 +4,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+9 -4
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,11 +11,12 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS( curses )
IF(NOT DISABLE_NCURSES)
SUBDIRS( curses )
ENDIF(NOT DISABLE_NCURSES)
SET(LIB_GUI_COMMON_SRC gui-buffer.c gui-common.c gui-action.c gui-keyboard.c
gui-log.c gui-window.c gui-panel.c gui.h gui-buffer.h gui-color.h gui-keyboard.h
@@ -23,3 +24,7 @@ gui-panel.h gui-window.h)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_LIBRARY(weechat_gui_common STATIC ${LIB_GUI_COMMON_SRC})
IF(ENABLE_GTK)
ADD_SUBDIRECTORY( gtk )
ENDIF(ENABLE_GTK)
+2 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\"
+6 -3
View File
@@ -2,7 +2,7 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(WEECHAT_CURSES_SRC gui-curses-chat.c gui-curses-color.c gui-curses-infobar.c
@@ -36,6 +35,10 @@ IF(NCURSES_FOUND)
LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
ENDIF(NCURSES_FOUND)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
LIST(APPEND EXTRA_LIBS "utf8")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
INCLUDE_DIRECTORIES(.. ../../common ../../irc ../../plugins)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})

Some files were not shown because too many files have changed in this diff Show More