mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
Compare commits
101 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d486a0223d | |||
| 707749957a | |||
| f950700a34 | |||
| ee4d039c42 | |||
| 70a970f8ed | |||
| 50a62179d4 | |||
| b01bc3eb21 | |||
| d44762aa43 | |||
| c056a03871 | |||
| 61ee836891 | |||
| 33c9ee86af | |||
| 8c5e618c88 | |||
| c0255add37 | |||
| 1946b4cacc | |||
| 9d69720b26 | |||
| 68fd773730 | |||
| dd0b1701e3 | |||
| 72d9c51ab0 | |||
| 5218a359af | |||
| 88a6c491a2 | |||
| edb21c362a | |||
| f523d2b0a5 | |||
| e05be4e2b3 | |||
| 12fcca4c31 | |||
| 882b72cd0c | |||
| ebae0cb7d5 | |||
| 7f1335c6f0 | |||
| b0490eb249 | |||
| c4710cb22b | |||
| ca814fdb3f | |||
| 54b74ed1e1 | |||
| 73d9515f5c | |||
| 57282055c3 | |||
| 7863d4cece | |||
| 76afa6d2b5 | |||
| 5245ee6b14 | |||
| 69bd50d74c | |||
| fb8bae3c78 | |||
| 0c0e511079 | |||
| 07d9deaf95 | |||
| 4908e196ad | |||
| dc92ee389c | |||
| 30c3fa9d98 | |||
| 0c8867c9e3 | |||
| 57ceaba3d1 | |||
| aed84560f8 | |||
| 1108ef217f | |||
| f827677ba9 | |||
| 8011a2534f | |||
| e4de086728 | |||
| 7c6c2e8e84 | |||
| 3da3c0c96e | |||
| c1c9dd2da8 | |||
| ec78674d4e | |||
| c246d44762 | |||
| 09ddfcd860 | |||
| 028d38b44e | |||
| f68a2cbfcd | |||
| 3c10d2205e | |||
| 362866fdf2 | |||
| d150376c54 | |||
| 9d3e31e165 | |||
| efd511dea4 | |||
| 0904d9afaf | |||
| 2da039222d | |||
| 271bd21802 | |||
| bd0b7957a3 | |||
| bd2ab776fe | |||
| 2c3fad454c | |||
| b1a99c5e6f | |||
| 3b48025071 | |||
| feec343ffb | |||
| ddc10d0164 | |||
| 5bf2c326f2 | |||
| 241f70f869 | |||
| 9d5ef17bd6 | |||
| 825a9cfdf6 | |||
| fc2693c8e1 | |||
| 0bbe747f78 | |||
| feedeb25f6 | |||
| f1a39ce7d7 | |||
| 585681e5a0 | |||
| cd3599e6db | |||
| bbe20b9b30 | |||
| 00c4e36357 | |||
| d3d4bcaf2b | |||
| 8cdad47de8 | |||
| a8017fe06c | |||
| 4297b55bf2 | |||
| 83db899ce7 | |||
| 894cda91c9 | |||
| 47ce432199 | |||
| c9625e1f58 | |||
| d604e222ea | |||
| fb34430076 | |||
| 636dd48a7b | |||
| c1c7fbc156 | |||
| 3799b83107 | |||
| b80c53e87d | |||
| 299d37a342 | |||
| 6971faba65 |
+23
-4
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
PROJECT(weechat)
|
PROJECT(weechat)
|
||||||
@@ -25,7 +24,7 @@ IF(PREFIX)
|
|||||||
SET(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "Install path prefix" FORCE)
|
SET(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "Install path prefix" FORCE)
|
||||||
ENDIF(PREFIX)
|
ENDIF(PREFIX)
|
||||||
|
|
||||||
SET(VERSION 0.2.5-cvs)
|
SET(VERSION 0.2.6.3)
|
||||||
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
||||||
SET(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/weechat)
|
SET(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/weechat)
|
||||||
SET(SHAREDIR ${CMAKE_INSTALL_PREFIX}/share/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})
|
STRING(REPLACE "\";\"" "\ " PKG_STRING ${PKG_STRING})
|
||||||
|
|
||||||
OPTION(DISABLE_NCURSES "Disable Ncurses interface")
|
OPTION(DISABLE_NCURSES "Disable Ncurses interface")
|
||||||
|
OPTION(ENABLE_GTK "Enable GTK interface")
|
||||||
OPTION(DISABLE_NLS "Disable Native Language Support")
|
OPTION(DISABLE_NLS "Disable Native Language Support")
|
||||||
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
|
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
|
||||||
OPTION(DISABLE_PLUGINS "Disable Plugins support")
|
OPTION(DISABLE_PLUGINS "Disable Plugins support")
|
||||||
@@ -51,3 +51,22 @@ IF(NOT DISABLE_DOC)
|
|||||||
ENDIF(NOT DISABLE_DOC)
|
ENDIF(NOT DISABLE_DOC)
|
||||||
|
|
||||||
CONFIGURE_FILE(config.h.cmake config.h @ONLY)
|
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})
|
||||||
|
|
||||||
|
|||||||
@@ -1,285 +1,626 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 2, June 1991
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Preamble
|
Preamble
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
The GNU General Public License is a free, copyleft license for
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
software and other kinds of works.
|
||||||
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
|
The licenses for most software and other practical works are designed
|
||||||
General Public License applies to most of the Free Software
|
to take away your freedom to share and change the works. By contrast,
|
||||||
Foundation's software and to any other program whose authors commit to
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
share and change all versions of a program--to make sure it remains free
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
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.
|
your programs, too.
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
When we speak of free software, we are referring to freedom, not
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
have the freedom to distribute copies of free software (and charge for
|
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
|
them if you wish), that you receive source code or can get it if you
|
||||||
if you want it, that you can change the software or use pieces of it
|
want it, that you can change the software or use pieces of it in new
|
||||||
in new free programs; and that you know you can do these things.
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
To protect your rights, we need to prevent others from denying you
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
These restrictions translate to certain responsibilities for you if you
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
distribute copies of the software, or if you modify it.
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
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
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
you have. You must make sure that they, too, receive or can get the
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
source code. And you must show them these terms so they know their
|
or can get the source code. And you must show them these terms so they
|
||||||
rights.
|
know their rights.
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
distribute and/or modify the software.
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
that everyone understands that there is no warranty for this free
|
that there is no warranty for this free software. For both users' and
|
||||||
software. If the software is modified by someone else and passed on, we
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
want its recipients to know that what they have is not the original, so
|
changed, so that their problems will not be attributed erroneously to
|
||||||
that any problems introduced by others will not reflect on the original
|
authors of previous versions.
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
Some devices are designed to deny users access to install or run
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
modified versions of the software inside them, although the manufacturer
|
||||||
program will individually obtain patent licenses, in effect making the
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
protecting users' freedom to change the software. The systematic
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
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
|
The precise terms and conditions for copying, distribution and
|
||||||
modification follow.
|
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
|
TERMS AND CONDITIONS
|
||||||
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".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
0. Definitions.
|
||||||
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.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
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.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
of it, thus forming a work based on the Program, and copy and
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
distribute such modifications or work under the terms of Section 1
|
"recipients" may be individuals or organizations.
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
stating that you changed the files and the date of any change.
|
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
|
A "covered work" means either the unmodified Program or a work based
|
||||||
whole or in part contains or is derived from the Program or any
|
on the Program.
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
To "propagate" a work means to do anything with it that, without
|
||||||
when run, you must cause it, when started running for such
|
permission, would make you directly or secondarily liable for
|
||||||
interactive use in the most ordinary way, to print or display an
|
infringement under applicable copyright law, except executing it on a
|
||||||
announcement including an appropriate copyright notice and a
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
notice that there is no warranty (or else, saying that you provide
|
distribution (with or without modification), making available to the
|
||||||
a warranty) and that users may redistribute the program under
|
public, and in some countries other activities as well.
|
||||||
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.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
To "convey" a work means any kind of propagation that enables other
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
exercise the right to control the distribution of derivative or
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
to the extent that it includes a convenient and prominently visible
|
||||||
a storage or distribution medium does not bring the other work under
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
the scope of this License.
|
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,
|
1. Source Code.
|
||||||
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:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
The "source code" for a work means the preferred form of the work
|
||||||
source code, which must be distributed under the terms of Sections
|
for making modifications to it. "Object code" means any non-source
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
form of a work.
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
A "Standard Interface" means an interface that either is an official
|
||||||
years, to give any third party, for a charge no more than your
|
standard defined by a recognized standards body, or, in the case of
|
||||||
cost of physically performing source distribution, a complete
|
interfaces specified for a particular programming language, one that
|
||||||
machine-readable copy of the corresponding source code, to be
|
is widely used among developers working in that language.
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
The "System Libraries" of an executable work include anything, other
|
||||||
to distribute corresponding source code. (This alternative is
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
allowed only for noncommercial distribution and only if you
|
packaging a Major Component, but which is not part of that Major
|
||||||
received the program in object code or executable form with such
|
Component, and (b) serves only to enable use of the work with that
|
||||||
an offer, in accord with Subsection b above.)
|
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
|
The "Corresponding Source" for a work in object code form means all
|
||||||
making modifications to it. For an executable work, complete source
|
the source code needed to generate, install, and (for an executable
|
||||||
code means all the source code for all modules it contains, plus any
|
work) run the object code and to modify the work, including scripts to
|
||||||
associated interface definition files, plus the scripts used to
|
control those activities. However, it does not include the work's
|
||||||
control compilation and installation of the executable. However, as a
|
System Libraries, or general-purpose tools or generally available free
|
||||||
special exception, the source code distributed need not include
|
programs which are used unmodified in performing those activities but
|
||||||
anything that is normally distributed (in either source or binary
|
which are not part of the work. For example, Corresponding Source
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
includes interface definition files associated with source files for
|
||||||
operating system on which the executable runs, unless that component
|
the work, and the source code for shared libraries and dynamically
|
||||||
itself accompanies the executable.
|
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
|
The Corresponding Source need not include anything that users
|
||||||
access to copy from a designated place, then offering equivalent
|
can regenerate automatically from other parts of the Corresponding
|
||||||
access to copy the source code from the same place counts as
|
Source.
|
||||||
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.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
The Corresponding Source for a work in source code form is that
|
||||||
signed it. However, nothing else grants you permission to modify or
|
same work.
|
||||||
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.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
2. Basic Permissions.
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
All rights granted under this License are granted for the term of
|
||||||
these terms and conditions. You may not impose any further
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
You are not responsible for enforcing compliance by third parties to
|
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.
|
this License.
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
infringement or for any other reason (not limited to patent issues),
|
patent license under the contributor's essential patent claims, to
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
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
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
excuse you from the conditions of this License. If you cannot
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
License and any other pertinent obligations, then as a consequence you
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
may not distribute the Program at all. For example, if a patent
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
license would not permit royalty-free redistribution of the Program by
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
all those who receive copies directly or indirectly through you, then
|
the Program, the only way you could satisfy both those terms and this
|
||||||
the only way you could satisfy both it and this License would be to
|
License would be to refrain entirely from conveying the Program.
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
13. Use with the GNU Affero General Public License.
|
||||||
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.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
Notwithstanding any other provision of this License, you have
|
||||||
patents or other property right claims or to contest validity of any
|
permission to link or combine any covered work with a work licensed
|
||||||
such claims; this section has the sole purpose of protecting the
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
integrity of the free software distribution system, which is
|
combined work, and to convey the resulting work. The terms of this
|
||||||
implemented by public license practices. Many people have made
|
License will continue to apply to the part which is the covered work,
|
||||||
generous contributions to the wide range of software distributed
|
but the special requirements of the GNU Affero General Public License,
|
||||||
through that system in reliance on consistent application of that
|
section 13, concerning interaction through a network will apply to the
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
combination as such.
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
14. Revised Versions of this License.
|
||||||
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.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
of the General Public License from time to time. Such new versions will
|
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
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
address new problems or concerns.
|
address new problems or concerns.
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
Each version is given a distinguishing version number. If the
|
||||||
specifies a version number of this License which applies to it and "any
|
Program specifies that a certain numbered version of the GNU General
|
||||||
later version", you have the option of following the terms and conditions
|
Public License "or any later version" applies to it, you have the
|
||||||
either of that version or of any later version published by the Free
|
option of following the terms and conditions either of that numbered
|
||||||
Software Foundation. If the Program does not specify a version number of
|
version or of any later version published by the Free Software
|
||||||
this License, you may choose any version ever published by the Free Software
|
Foundation. If the Program does not specify a version number of the
|
||||||
Foundation.
|
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
|
If the Program specifies that a proxy can decide which future
|
||||||
programs whose distribution conditions are different, write to the author
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
public statement of acceptance of a version permanently authorizes you
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
to choose that version for the Program.
|
||||||
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.
|
|
||||||
|
|
||||||
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
|
15. Disclaimer of 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.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
16. Limitation of Liability.
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
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
|
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
|
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 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
|
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.
|
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.>
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
Copyright (C) <year> <name of author>
|
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
|
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.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
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.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
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
|
If the program does terminal interaction, make it output a short
|
||||||
when it starts in an interactive mode:
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) year name of author
|
<program> Copyright (C) <year> <name of author>
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
under certain conditions; type `show c' for details.
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
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
|
parts of the General Public License. Of course, your program's commands
|
||||||
be called something other than `show w' and `show c'; they could even be
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
necessary. Here is a sample; alter the names:
|
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
|
The GNU General Public License does not permit incorporating your program
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
<signature of Ty Coon>, 1 April 1989
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
Ty Coon, President of Vice
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
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.
|
|
||||||
|
|||||||
@@ -1,9 +1,72 @@
|
|||||||
WeeChat - Wee Enhanced Environment for Chat
|
WeeChat - Wee Enhanced Environment for Chat
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
ChangeLog - 2007-06-07
|
ChangeLog - 2009-06-13
|
||||||
|
|
||||||
|
|
||||||
|
Version 0.2.6.3 (2009-06-13):
|
||||||
|
* fix gnutls detection (use pkg-config instead of libgnutls-config)
|
||||||
|
(bug #26790)
|
||||||
|
|
||||||
|
Version 0.2.6.2 (2009-04-18):
|
||||||
|
* fix bug with charset decoding (for example with iso2022jp)
|
||||||
|
|
||||||
|
Version 0.2.6.1 (2009-03-14):
|
||||||
|
* fix crash with some special chars in IRC messages (bug #25862)
|
||||||
|
|
||||||
|
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):
|
Version 0.2.5 (2007-06-07):
|
||||||
* fixed QUOTE command: now allowed when socket is ok (even if IRC
|
* fixed QUOTE command: now allowed when socket is ok (even if IRC
|
||||||
connection to server is not ok) (bug #20113)
|
connection to server is not ok) (bug #20113)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
WeeChat FAQ, 2007-06-07
|
WeeChat FAQ, 2007-09-06
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
Intended audience:
|
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
|
- check that weechat-curses is linked to libncursesw (warning: needed
|
||||||
on most distributions but not all) :
|
on most distributions but not all) :
|
||||||
ldd /path/to/weechat-curses
|
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
|
- 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,
|
UTF-8 for terminal charset. If you see ANSI_X3.4-1968 or other values,
|
||||||
probably your locale is wrong.
|
probably your locale is wrong.
|
||||||
- setup global decode value, for example:
|
- setup global decode value, for example:
|
||||||
/setp charset.global.decode = ISO-8859-15
|
/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
|
2.5
|
||||||
@@ -189,6 +193,16 @@ A: You can use a terminal with rectangular selection (like rxvt-unicode,
|
|||||||
/set look_nicklist_position = top
|
/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
|
3.1
|
||||||
================================================================================
|
================================================================================
|
||||||
Q: How should I report bugs?
|
Q: How should I report bugs?
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
WeeChat FAQ, 2007-06-07
|
WeeChat FAQ, 2007-09-06
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
Public concerné :
|
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:
|
- vérifiez que weechat-curses est lié avec libncursesw (attention:
|
||||||
nécessaire sur beaucoup de distributions, mais pas toutes) :
|
nécessaire sur beaucoup de distributions, mais pas toutes) :
|
||||||
ldd /chemin/vers/weechat-curses
|
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
|
- 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
|
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
|
ANSI_X3.4-1968 ou d'autres valeurs, votre locale est probablement
|
||||||
erronée.
|
erronée.
|
||||||
- affectez la valeur pour le décodage global, par exemple :
|
- affectez la valeur pour le décodage global, par exemple :
|
||||||
/setp charset.global.decode = ISO-8859-15
|
/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
|
2.5
|
||||||
@@ -200,6 +205,16 @@ R: Vous pouvez utiliser un terminal qui propose la s
|
|||||||
/set look_nicklist_position = top
|
/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
|
3.1
|
||||||
================================================================================
|
================================================================================
|
||||||
Q: Comment dois-je reporter les bugs ?
|
Q: Comment dois-je reporter les bugs ?
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SUBDIRS = po doc intl src
|
SUBDIRS = po doc intl src
|
||||||
|
|||||||
@@ -1,6 +1,29 @@
|
|||||||
WeeChat - Wee Enhanced Environment for Chat
|
WeeChat - Wee Enhanced Environment for Chat
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
|
* FlashCode, 2009-06-13
|
||||||
|
|
||||||
|
WeeChat 0.2.6.3 released.
|
||||||
|
|
||||||
|
This version fixes gnutls detection.
|
||||||
|
|
||||||
|
* FlashCode, 2009-04-18
|
||||||
|
|
||||||
|
WeeChat 0.2.6.2 released.
|
||||||
|
|
||||||
|
This version fixes a bug with charset decoding (like iso2022jp).
|
||||||
|
|
||||||
|
* FlashCode, 2009-03-14
|
||||||
|
|
||||||
|
WeeChat 0.2.6.1 released.
|
||||||
|
|
||||||
|
This version fixes a major bug: crash with some special chars in IRC
|
||||||
|
messages.
|
||||||
|
|
||||||
|
* FlashCode, 2007-09-06
|
||||||
|
|
||||||
|
WeeChat 0.2.6 released.
|
||||||
|
|
||||||
* FlashCode, 2007-06-07
|
* FlashCode, 2007-06-07
|
||||||
|
|
||||||
WeeChat 0.2.5 released.
|
WeeChat 0.2.5 released.
|
||||||
|
|||||||
@@ -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
|
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
|
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.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
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.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
+16
@@ -1,4 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/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
|
### common stuff
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Aspell
|
# - Find Aspell
|
||||||
|
|||||||
+11
-5
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Gettext
|
# - Find Gettext
|
||||||
@@ -42,17 +41,24 @@ SET(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
|
|||||||
CHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL_H)
|
CHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL_H)
|
||||||
|
|
||||||
IF(HAVE_LIBINTL_H)
|
IF(HAVE_LIBINTL_H)
|
||||||
|
|
||||||
CHECK_FUNCTION_EXISTS(dgettext LIBC_HAS_DGETTEXT)
|
CHECK_FUNCTION_EXISTS(dgettext LIBC_HAS_DGETTEXT)
|
||||||
IF(LIBC_HAS_DGETTEXT)
|
IF(LIBC_HAS_DGETTEXT)
|
||||||
SET(GETTEXT_FOUND TRUE)
|
SET(GETTEXT_FOUND TRUE)
|
||||||
ELSE(LIBC_HAS_DGETTEXT)
|
ELSE(LIBC_HAS_DGETTEXT)
|
||||||
FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl libintl
|
FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl
|
||||||
PATHS
|
PATHS
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/lib
|
/usr/lib
|
||||||
)
|
)
|
||||||
IF(LIBINTL_LIBRARY)
|
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)
|
IF(LIBINTL_HAS_DGETTEXT)
|
||||||
SET(GETTEXT_FOUND TRUE)
|
SET(GETTEXT_FOUND TRUE)
|
||||||
ENDIF(LIBINTL_HAS_DGETTEXT)
|
ENDIF(LIBINTL_HAS_DGETTEXT)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find GnuTLS
|
# - Find GnuTLS
|
||||||
@@ -31,19 +30,21 @@ IF(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
|
|||||||
set(GNUTLS_FIND_QUIETLY TRUE)
|
set(GNUTLS_FIND_QUIETLY TRUE)
|
||||||
ENDIF(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
|
ENDIF(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
|
||||||
|
|
||||||
FIND_PROGRAM(GNUTLS_CONFIG_EXECUTABLE NAMES libgnutls-config)
|
FIND_PROGRAM(PKG_CONFIG_EXECUTABLE NAMES pkg-config)
|
||||||
|
|
||||||
EXECUTE_PROCESS(COMMAND ${GNUTLS_CONFIG_EXECUTABLE} --prefix
|
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls
|
||||||
OUTPUT_VARIABLE GNUTLS_PREFIX
|
OUTPUT_VARIABLE GNUTLS_PREFIX
|
||||||
)
|
)
|
||||||
|
|
||||||
EXECUTE_PROCESS(COMMAND ${GNUTLS_CONFIG_EXECUTABLE} --cflags
|
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls
|
||||||
OUTPUT_VARIABLE GNUTLS_CFLAGS
|
OUTPUT_VARIABLE GNUTLS_CFLAGS
|
||||||
)
|
)
|
||||||
|
STRING(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_FLAGS}")
|
||||||
|
|
||||||
EXECUTE_PROCESS(COMMAND ${GNUTLS_CONFIG_EXECUTABLE} --libs
|
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls
|
||||||
OUTPUT_VARIABLE GNUTLS_LDFLAGS
|
OUTPUT_VARIABLE GNUTLS_LDFLAGS
|
||||||
)
|
)
|
||||||
|
STRING(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}")
|
||||||
|
|
||||||
SET(GNUTLS_POSSIBLE_INCLUDE_PATH "${GNUTLS_PREFIX}/include")
|
SET(GNUTLS_POSSIBLE_INCLUDE_PATH "${GNUTLS_PREFIX}/include")
|
||||||
SET(GNUTLS_POSSIBLE_LIB_DIR "${GNUTLS_PREFIX}/lib")
|
SET(GNUTLS_POSSIBLE_LIB_DIR "${GNUTLS_PREFIX}/lib")
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Iconv
|
# - Find Iconv
|
||||||
|
|||||||
+3
-4
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Lua
|
# - Find Lua
|
||||||
@@ -38,7 +37,7 @@ FIND_PATH(
|
|||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(
|
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
|
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
IF(NCURSES_FOUND)
|
||||||
SET(NCURSES_FIND_QUIETLY TRUE)
|
SET(NCURSES_FIND_QUIETLY TRUE)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Perl libraries
|
# - Find Perl libraries
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Python
|
# - Find Python
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# - Find Ruby
|
# - Find Ruby
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Executable
+33
@@ -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}
|
||||||
+22
-14
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,18 +11,17 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# -*- Autoconf -*-
|
# -*- Autoconf -*-
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.56)
|
AC_PREREQ(2.56)
|
||||||
AC_INIT(WeeChat, 0.2.5, flashcode@flashtux.org)
|
AC_INIT(WeeChat, 0.2.6.3, flashcode@flashtux.org)
|
||||||
AC_CONFIG_SRCDIR([src/common/weechat.c])
|
AC_CONFIG_SRCDIR([src/common/weechat.c])
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
AM_INIT_AUTOMAKE([weechat], [0.2.5])
|
AM_INIT_AUTOMAKE([weechat], [0.2.6.3])
|
||||||
|
|
||||||
# Checks for programs
|
# Checks for programs
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
@@ -601,20 +600,28 @@ fi
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
if test "x$enable_gnutls" = "xyes" ; then
|
if test "x$enable_gnutls" = "xyes" ; then
|
||||||
found_gnutls="no"
|
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
|
||||||
AM_PATH_LIBGNUTLS( 1.0.0, found_gnutls=yes, AC_MSG_WARN([[
|
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for gnutls headers and librairies)
|
||||||
|
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
AC_MSG_WARN([
|
||||||
*** libgnutls was not found. You may want to get it from ftp://ftp.gnutls.org/pub/gnutls/
|
*** libgnutls was not found. You may want to get it from ftp://ftp.gnutls.org/pub/gnutls/
|
||||||
*** WeeChat will be built without GnuTLS support.]]))
|
*** WeeChat will be built without GnuTLS support.])
|
||||||
if test "x$found_gnutls" = "xyes" ; then
|
enable_gnutls="no"
|
||||||
GNUTLS_CFLAGS=`libgnutls-config --cflags`
|
not_found="$not_found gnutls"
|
||||||
GNUTLS_LFLAGS=`libgnutls-config --libs`
|
else
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
|
||||||
|
GNUTLS_LFLAGS=`pkg-config gnutls --libs`
|
||||||
AC_SUBST(GNUTLS_CFLAGS)
|
AC_SUBST(GNUTLS_CFLAGS)
|
||||||
AC_SUBST(GNUTLS_LFLAGS)
|
AC_SUBST(GNUTLS_LFLAGS)
|
||||||
AC_DEFINE(HAVE_GNUTLS)
|
AC_DEFINE(HAVE_GNUTLS)
|
||||||
else
|
CFLAGS="$CFLAGS -DHAVE_GNUTLS"
|
||||||
enable_gnutls="no"
|
|
||||||
not_found="$not_found gnutls"
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
not_asked="$not_asked gnutls"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
@@ -796,6 +803,7 @@ AC_OUTPUT([Makefile
|
|||||||
doc/pl/Makefile
|
doc/pl/Makefile
|
||||||
doc/cs/Makefile
|
doc/cs/Makefile
|
||||||
doc/sco/Makefile
|
doc/sco/Makefile
|
||||||
|
doc/sv/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
src/common/Makefile
|
src/common/Makefile
|
||||||
src/irc/Makefile
|
src/irc/Makefile
|
||||||
|
|||||||
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SET(DOC_LANGS
|
SET(DOC_LANGS
|
||||||
@@ -23,6 +22,7 @@ SET(DOC_LANGS
|
|||||||
pl
|
pl
|
||||||
ru
|
ru
|
||||||
sco
|
sco
|
||||||
|
sv
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PROGRAM(
|
FIND_PROGRAM(
|
||||||
|
|||||||
+3
-4
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,11 +11,10 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SUBDIRS = . en fr de ru pl cs sco
|
SUBDIRS = . en fr de ru pl cs sco sv
|
||||||
|
|
||||||
man_MANS = weechat-curses.1
|
man_MANS = weechat-curses.1
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = cs
|
LANGCODE = cs
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = de
|
LANGCODE = de
|
||||||
|
|||||||
+40
-5
@@ -108,7 +108,7 @@
|
|||||||
<entry>Ganzzahl</entry>
|
<entry>Ganzzahl</entry>
|
||||||
<entry>zwischen 0 und 100</entry>
|
<entry>zwischen 0 und 100</entry>
|
||||||
<entry>0</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 > 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 > 0, then size is fixed))</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>look_nicklist_separator</option></entry>
|
<entry><option>look_nicklist_separator</option></entry>
|
||||||
@@ -180,6 +180,13 @@
|
|||||||
<entry>20</entry>
|
<entry>20</entry>
|
||||||
<entry>Maximale Größe zum Ausrichten von Nicknamen und anderen Nachrichten (sollte >= look_align_size sein)</entry>
|
<entry>Maximale Größe zum Ausrichten von Nicknamen und anderen Nachrichten (sollte >= look_align_size sein)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_nick_completor</option></entry>
|
<entry><option>look_nick_completor</option></entry>
|
||||||
<entry>Zeichenfolge</entry>
|
<entry>Zeichenfolge</entry>
|
||||||
@@ -257,10 +264,17 @@
|
|||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Maximale Länge der Namen in der Hotlist (0: kein Limit)</entry>
|
<entry>Maximale Länge der Namen in der Hotlist (0: kein Limit)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_day_change</option></entry>
|
<entry><option>look_day_change</option></entry>
|
||||||
<entry>Boolean</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>'on'</entry>
|
||||||
<entry>Spezielle Nachricht anzeigen, wenn ein neuer Tag beginnt</entry>
|
<entry>Spezielle Nachricht anzeigen, wenn ein neuer Tag beginnt</entry>
|
||||||
</row>
|
</row>
|
||||||
@@ -285,10 +299,17 @@
|
|||||||
<entry>'[%n(%m)] '</entry>
|
<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>
|
<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>
|
||||||
|
<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>
|
<row>
|
||||||
<entry><option>col_real_white</option></entry>
|
<entry><option>col_real_white</option></entry>
|
||||||
<entry>Boolean</entry>
|
<entry>Boolean</entry>
|
||||||
<entry>eine beliebige Zeichenfolge</entry>
|
<entry>zwischen 0 und 2147483647</entry>
|
||||||
<entry>'off'</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>
|
<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>
|
</row>
|
||||||
@@ -565,6 +586,13 @@
|
|||||||
<entry>'red'</entry>
|
<entry>'red'</entry>
|
||||||
<entry>Farbe für den Text nicht gefunden</entry>
|
<entry>Farbe für den Text nicht gefunden</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_input_bg</option></entry>
|
<entry><option>col_input_bg</option></entry>
|
||||||
<entry>Farbe</entry>
|
<entry>Farbe</entry>
|
||||||
@@ -621,6 +649,13 @@
|
|||||||
<entry>'yellow'</entry>
|
<entry>'yellow'</entry>
|
||||||
<entry>Farbe des Voice-Symbols</entry>
|
<entry>Farbe des Voice-Symbols</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_nick_more</option></entry>
|
<entry><option>col_nick_more</option></entry>
|
||||||
<entry>Farbe</entry>
|
<entry>Farbe</entry>
|
||||||
@@ -948,7 +983,7 @@
|
|||||||
<entry>Boolean</entry>
|
<entry>Boolean</entry>
|
||||||
<entry>eine beliebige Zeichenfolge</entry>
|
<entry>eine beliebige Zeichenfolge</entry>
|
||||||
<entry>'on'</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>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>irc_send_unknown_commands</option></entry>
|
<entry><option>irc_send_unknown_commands</option></entry>
|
||||||
@@ -1226,7 +1261,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<entry><option>server_command_delay</option></entry>
|
<entry><option>server_command_delay</option></entry>
|
||||||
<entry>Ganzzahl</entry>
|
<entry>Ganzzahl</entry>
|
||||||
<entry>zwischen 0 und 5</entry>
|
<entry>zwischen 0 und 3600</entry>
|
||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Wartezeit in Sekunden nach Ausführung des Befehls, um z.B. eine Authentifizierung zu ermöglichen</entry>
|
<entry>Wartezeit in Sekunden nach Ausführung des Befehls, um z.B. eine Authentifizierung zu ermöglichen</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|||||||
@@ -157,6 +157,10 @@
|
|||||||
<entry><literal>jump_last_buffer</literal></entry>
|
<entry><literal>jump_last_buffer</literal></entry>
|
||||||
<entry>zum letzten Puffer springen</entry>
|
<entry>zum letzten Puffer springen</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>jump_previous_buffer</literal></entry>
|
||||||
|
<entry>jump to previous buffer</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>jump_server</literal></entry>
|
<entry><literal>jump_server</literal></entry>
|
||||||
<entry>zum Serverpuffer springen</entry>
|
<entry>zum Serverpuffer springen</entry>
|
||||||
@@ -181,6 +185,10 @@
|
|||||||
<entry><literal>scroll_unread</literal></entry>
|
<entry><literal>scroll_unread</literal></entry>
|
||||||
<entry>scrolle zur ersten, ungelesenen Zeile im Puffer</entry>
|
<entry>scrolle zur ersten, ungelesenen Zeile im Puffer</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>set_unread</literal></entry>
|
||||||
|
<entry>set unread marker on all buffers</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>hotlist_clear</literal></entry>
|
<entry><literal>hotlist_clear</literal></entry>
|
||||||
<entry>Hotlist leeren</entry>
|
<entry>Hotlist leeren</entry>
|
||||||
|
|||||||
+363
-160
@@ -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
|
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
|
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.
|
(at your option) any later version.
|
||||||
|
|
||||||
This manual is distributed in the hope that it will be useful,
|
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.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
<bookinfo>
|
<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>
|
<subtitle>Schneller, leichter und erweiterbarer IRC Client</subtitle>
|
||||||
|
|
||||||
<author>
|
<author>
|
||||||
@@ -57,7 +56,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Dieses Programm ist freie Software. Sie können es unter
|
Dieses Programm ist freie Software. Sie können es unter
|
||||||
den Bedingungen der GNU General Public License,
|
den Bedingungen der GNU General Public License,
|
||||||
wie von der Free Software Foundation veröffentlicht,
|
wie von der Free Software Foundation veröffentlicht,
|
||||||
weitergeben und/oder modifizieren, entweder gemäß Version 2
|
weitergeben und/oder modifizieren, entweder gemäß Version 3
|
||||||
der Lizenz oder (nach Ihrer Option) jeder späteren Version.
|
der Lizenz oder (nach Ihrer Option) jeder späteren Version.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
@@ -70,8 +69,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<para>
|
<para>
|
||||||
Sie sollten ein Exemplar der GNU General Public License
|
Sie sollten ein Exemplar der GNU General Public License
|
||||||
zusammen mit diesem Programm erhalten haben. Falls nicht,
|
zusammen mit diesem Programm erhalten haben. Falls nicht,
|
||||||
schreiben Sie an die Free Software Foundation, Inc.,
|
<http://www.gnu.org/licenses/>.
|
||||||
51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
|
|
||||||
</para>
|
</para>
|
||||||
</legalnotice>
|
</legalnotice>
|
||||||
|
|
||||||
@@ -465,13 +463,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>Links</entry>
|
<entry>Links / Strg + B</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Gehe zum vorherigen Zeichen in der Kommandozeile
|
Gehe zum vorherigen Zeichen in der Kommandozeile
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Rechts</entry>
|
<entry>Rechts / Strg + F</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Gehe zum nächsten Zeichen in der Kommandozeile
|
Gehe zum nächsten Zeichen in der Kommandozeile
|
||||||
</entry>
|
</entry>
|
||||||
@@ -494,6 +492,37 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Gehe zum Anfang der Kommandozeile
|
Gehe zum Anfang der Kommandozeile
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry>Ende / Strg + E</entry>
|
<entry>Ende / Strg + E</entry>
|
||||||
<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)
|
(zwei Mal: suche nach dem genauen Text)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>Strg + S dann Strg + U</entry>
|
||||||
|
<entry>
|
||||||
|
<!-- TRANSLATION NEEDED -->
|
||||||
|
Set unread marker on all buffers
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Strg + T</entry>
|
<entry>Strg + T</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -550,7 +586,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Entfernen</entry>
|
<entry>Entfernen / Strg + D</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Lösche das nächste Zeichen in der Kommandozeile
|
Lösche das nächste Zeichen in der Kommandozeile
|
||||||
</entry>
|
</entry>
|
||||||
@@ -699,6 +735,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Schalte zum letzten Puffer
|
Schalte zum letzten Puffer
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>Alt + J then Alt + P</entry>
|
||||||
|
<entry>
|
||||||
|
<!-- TRANSLATION NEEDED -->
|
||||||
|
Switch to buffer previously displayed
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Alt + J dann Alt + R</entry>
|
<entry>Alt + J dann Alt + R</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -812,7 +855,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Wenn die Option IRC-Farben ("<literal>irc_colors_send</literal>") senden
|
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">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -823,20 +868,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>%B</entry>
|
<entry>^Cb</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Fett (bold)
|
Fett (bold)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx</entry>
|
<entry>^Ccxx</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Textfarbe "<literal>xx</literal>" (color)
|
Textfarbe "<literal>xx</literal>" (color)
|
||||||
(siehe Farbtabelle)
|
(siehe Farbtabelle)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx,yy</entry>
|
<entry>^Ccxx,yy</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Textfarbe "<literal>xx</literal>"
|
Textfarbe "<literal>xx</literal>"
|
||||||
und Hintergrund "<literal>yy</literal>"
|
und Hintergrund "<literal>yy</literal>"
|
||||||
@@ -844,29 +889,23 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%O</entry>
|
<entry>^Co</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Schalte Farben und Attribute ab
|
Schalte Farben und Attribute ab
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%R</entry>
|
<entry>^Cr</entry>
|
||||||
<entry>
|
<entry>
|
||||||
umgedrehte Farben (tausche Textfarbe mit Hintergrundfarbe)
|
umgedrehte Farben (tausche Textfarbe mit Hintergrundfarbe)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%U</entry>
|
<entry>^Cu</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Unterstreiche Text
|
Unterstreiche Text
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<entry>%%</entry>
|
|
||||||
<entry>
|
|
||||||
Schreibe ein einzelnes "<literal>%</literal>"
|
|
||||||
</entry>
|
|
||||||
</row>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
@@ -875,7 +914,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Farbcodes für %C:
|
Farbcodes für ^Cc:
|
||||||
<informaltable colsep="0" frame="none">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<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
|
Beispiel: Anzeige von "<literal>hello everybody!</literal>" mit
|
||||||
"<literal>hello</literal>" fett in hellem Blau, und
|
"<literal>hello</literal>" fett in hellem Blau, und
|
||||||
"<literal>everybody</literal>" unterstrichen in hellem Rot:
|
"<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>
|
</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1116,117 +1155,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secFIFOpipe">
|
||||||
<title>Remote-Schnittstelle (FIFO pipe)</title>
|
<title>Remote-Schnittstelle (FIFO pipe)</title>
|
||||||
|
|
||||||
@@ -1287,7 +1215,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<screen>
|
<screen>
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ $# -eq 1 ]; then
|
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
|
echo -e "$1" >$fifo
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -1853,6 +1782,63 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Rückgabewert: keiner.
|
Rückgabewert: keiner.
|
||||||
</para>
|
</para>
|
||||||
@@ -1862,6 +1848,10 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
plugin->print (plugin, NULL, NULL, "hello");
|
plugin->print (plugin, NULL, NULL, "hello");
|
||||||
plugin->print (plugin, NULL, "#weechat", "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 Fett \x0F\x03%02d Blau \x03%02d Grün",
|
||||||
|
plugin->get_irc_color (plugin, "blue"),
|
||||||
|
plugin->get_irc_color (plugin, "green"));
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
@@ -1894,6 +1884,10 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
<!-- TRANSLATION NEEDED -->
|
||||||
|
To display colored text, see <xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Rückgabewert: keiner.
|
Rückgabewert: keiner.
|
||||||
</para>
|
</para>
|
||||||
@@ -2264,6 +2258,15 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
|||||||
<entry><literal>%-</literal></entry>
|
<entry><literal>%-</literal></entry>
|
||||||
<entry>keine Vervollständigung für das Argument</entry>
|
<entry>keine Vervollständigung für das Argument</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><literal>%a</literal></entry>
|
<entry><literal>%a</literal></entry>
|
||||||
<entry>Alias</entry>
|
<entry>Alias</entry>
|
||||||
@@ -2668,27 +2671,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<option>event</option> : Ereignis, siehe folgende Tabelle:
|
<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>
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2704,8 +2687,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</command>
|
</command>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Argument argc wird auf 1 gesetzt, argv[0] ist die Nummer des Puffers, der
|
<!-- TRANSLATION NEEDED -->
|
||||||
geöffnet oder geschlossen wird.
|
Arguments depend on event (see table below).
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2722,6 +2705,44 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Rückgabewert: Pointer auf den neuen Ereignishandler.
|
Rückgabewert: Pointer auf den neuen Ereignishandler.
|
||||||
</para>
|
</para>
|
||||||
@@ -4861,6 +4882,117 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secScriptsPlugins">
|
||||||
<title>Skript-Plugins</title>
|
<title>Skript-Plugins</title>
|
||||||
|
|
||||||
@@ -5222,6 +5354,10 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
<!-- TRANSLATION NEEDED -->
|
||||||
|
To display colored text, see <xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Rückgabewert: 1 bei Erfolg, 0 wenn ein Fehler aufgetreten ist
|
Rückgabewert: 1 bei Erfolg, 0 wenn ein Fehler aufgetreten ist
|
||||||
</para>
|
</para>
|
||||||
@@ -5232,6 +5368,7 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
weechat::print("message");
|
weechat::print("message");
|
||||||
weechat::print("message", "#weechat");
|
weechat::print("message", "#weechat");
|
||||||
weechat::print("message", "#weechat", "freenode");
|
weechat::print("message", "#weechat", "freenode");
|
||||||
|
weechat::print("test: \x0305 rot \x0F normal");
|
||||||
|
|
||||||
# python
|
# python
|
||||||
weechat.prnt("message")
|
weechat.prnt("message")
|
||||||
@@ -5251,6 +5388,72 @@ weechat.print("message", "#weechat", "freenode")
|
|||||||
</para>
|
</para>
|
||||||
</section>
|
</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">
|
<section id="secScript_print_infobar">
|
||||||
<title>print_infobar</title>
|
<title>print_infobar</title>
|
||||||
|
|
||||||
|
|||||||
+71
-38
@@ -22,15 +22,28 @@ Argumente: Argumente f
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
Puffer verwalten
|
Puffer verwalten
|
||||||
|
|
||||||
Aktion: Pufferaktion:
|
action: action to do:
|
||||||
move: Puffer in der Liste bewegen (kann auch relativ sein, wie -1)
|
move: move buffer in the list (may be relative, for example -1)
|
||||||
close: Puffer schließen (eine Part-Message kann optional angegeben werden)
|
close: close buffer (optional arg is part message, for a channel)
|
||||||
list: alle offenen Puffer auflisten (Standardaktion)
|
list: list open buffers (no parameter implies this list)
|
||||||
notify: Notify-Level für Puffer festlegen (0=nie, 1=bei hervorgehobenen Nachrichten, 2=1+persönliche Nachricht, 3=2+join/part)
|
notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 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)
|
(when executed on server buffer, this sets default notify level for whole server)
|
||||||
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
|
||||||
Channel: gehe zum Puffer mit Servernamen oder Channelnamen
|
|
||||||
Nummer: gehe zu Puffer mit dieser Nummer
|
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>
|
</programlisting>
|
||||||
<command>builtin Befehl</command>
|
<command>builtin Befehl</command>
|
||||||
@@ -41,7 +54,7 @@ Befehl: auszuf
|
|||||||
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>clear [-all | Nummer]</command>
|
<command>clear [-all | number [number ...]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
Fenster leeren
|
Fenster leeren
|
||||||
|
|
||||||
@@ -49,12 +62,17 @@ Fenster leeren
|
|||||||
Nummer: lösche den Puffer mit der angegebenen Nummer
|
Nummer: lösche den Puffer mit der angegebenen Nummer
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>connect [-all | Servername [Servername ...]]</command>
|
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
mit Server verbinden
|
mit Server verbinden
|
||||||
|
|
||||||
-all: verbinde mit allen Servern
|
-all: connect to all servers
|
||||||
servername: Servername, mit dem verbunden werden soll
|
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>
|
</programlisting>
|
||||||
<command>disconnect [-all | Servername [Servername ...]]</command>
|
<command>disconnect [-all | Servername [Servername ...]]</command>
|
||||||
@@ -74,12 +92,13 @@ Nickname: Empf
|
|||||||
Datei: zu versendende (lokal vorliegende) Datei
|
Datei: zu versendende (lokal vorliegende) Datei
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>debug dump | windows</command>
|
<command>debug dump | buffer | windows</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
Debugging-Nachricht ausgeben
|
Debugging-Nachricht ausgeben
|
||||||
|
|
||||||
dump: Speicherabbild im WeeChat-Logfile ablegen (wie nach einem Programmabsturz)
|
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
||||||
windows: zeigt Fensterdaten an
|
buffer: dump buffer content with hexadecimal values in log file
|
||||||
|
windows: display windows tree
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>help [Befehl]</command>
|
<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.
|
Ohne Argument, listet /plugin alle geladenen Plugins auf.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>reconnect [-all | Servername [Servername ...]]</command>
|
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
mit einem Server oder mehreren Servern neu verbinden
|
mit einem Server oder mehreren Servern neu verbinden
|
||||||
|
|
||||||
-all: Verbinde mit allen Servern neu
|
-all: reconnect to all servers
|
||||||
servername: Servername, mit dem verbunden werden soll
|
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 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
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>save [Datei]</command>
|
<command>save [Datei]</command>
|
||||||
@@ -168,6 +171,34 @@ Konfiguration abspeichern
|
|||||||
|
|
||||||
Datei: Name der zu speichernden Konfigurationsdatei
|
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>
|
</programlisting>
|
||||||
<command>set [Option [ = Wert]]</command>
|
<command>set [Option [ = Wert]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
@@ -211,11 +242,13 @@ Bei jedem Argument steht '*' f
|
|||||||
Ohne Argumente listet /unignore alle definierten /ignore-Regeln auf.
|
Ohne Argumente listet /unignore alle definierten /ignore-Regeln auf.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>upgrade</command>
|
<command>upgrade [path_to_binary]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
aktualisiert WeeChat ohne die Verbindung zum Server zu trennen
|
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>
|
</programlisting>
|
||||||
<command>uptime [-o]</command>
|
<command>uptime [-o]</command>
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = en
|
LANGCODE = en
|
||||||
|
|||||||
+40
-5
@@ -108,7 +108,7 @@
|
|||||||
<entry>integer</entry>
|
<entry>integer</entry>
|
||||||
<entry>between 0 and 100</entry>
|
<entry>between 0 and 100</entry>
|
||||||
<entry>0</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 > 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 > 0, then size is fixed))</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>look_nicklist_separator</option></entry>
|
<entry><option>look_nicklist_separator</option></entry>
|
||||||
@@ -180,6 +180,13 @@
|
|||||||
<entry>20</entry>
|
<entry>20</entry>
|
||||||
<entry>Max size for aligning nick and other messages (should be >= to look_align_size)</entry>
|
<entry>Max size for aligning nick and other messages (should be >= to look_align_size)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_nick_completor</option></entry>
|
<entry><option>look_nick_completor</option></entry>
|
||||||
<entry>string</entry>
|
<entry>string</entry>
|
||||||
@@ -257,6 +264,13 @@
|
|||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Max length of names in hotlist (0 = no limit)</entry>
|
<entry>Max length of names in hotlist (0 = no limit)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_day_change</option></entry>
|
<entry><option>look_day_change</option></entry>
|
||||||
<entry>boolean</entry>
|
<entry>boolean</entry>
|
||||||
@@ -273,8 +287,8 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>look_read_marker</option></entry>
|
<entry><option>look_read_marker</option></entry>
|
||||||
<entry>string</entry>
|
<entry>char</entry>
|
||||||
<entry>any string</entry>
|
<entry>any char</entry>
|
||||||
<entry>' '</entry>
|
<entry>' '</entry>
|
||||||
<entry>Use a marker on servers/channels to show first unread line</entry>
|
<entry>Use a marker on servers/channels to show first unread line</entry>
|
||||||
</row>
|
</row>
|
||||||
@@ -285,6 +299,13 @@
|
|||||||
<entry>'[%n(%m)] '</entry>
|
<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>
|
<entry>Format for input prompt ('%c' is replaced by channel or server, '%n' by nick and '%m' by nick modes)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_real_white</option></entry>
|
<entry><option>col_real_white</option></entry>
|
||||||
<entry>boolean</entry>
|
<entry>boolean</entry>
|
||||||
@@ -565,6 +586,13 @@
|
|||||||
<entry>'red'</entry>
|
<entry>'red'</entry>
|
||||||
<entry>Color for text not found</entry>
|
<entry>Color for text not found</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_input_bg</option></entry>
|
<entry><option>col_input_bg</option></entry>
|
||||||
<entry>color</entry>
|
<entry>color</entry>
|
||||||
@@ -621,6 +649,13 @@
|
|||||||
<entry>'yellow'</entry>
|
<entry>'yellow'</entry>
|
||||||
<entry>Color for voice symbol</entry>
|
<entry>Color for voice symbol</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_nick_more</option></entry>
|
<entry><option>col_nick_more</option></entry>
|
||||||
<entry>color</entry>
|
<entry>color</entry>
|
||||||
@@ -948,7 +983,7 @@
|
|||||||
<entry>boolean</entry>
|
<entry>boolean</entry>
|
||||||
<entry>'on' or 'off'</entry>
|
<entry>'on' or 'off'</entry>
|
||||||
<entry>'on'</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>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>irc_send_unknown_commands</option></entry>
|
<entry><option>irc_send_unknown_commands</option></entry>
|
||||||
@@ -1226,7 +1261,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<entry><option>server_command_delay</option></entry>
|
<entry><option>server_command_delay</option></entry>
|
||||||
<entry>integer</entry>
|
<entry>integer</entry>
|
||||||
<entry>between 0 and 5</entry>
|
<entry>between 0 and 3600</entry>
|
||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Delay (in seconds) after command was executed (example: give some time for authentication)</entry>
|
<entry>Delay (in seconds) after command was executed (example: give some time for authentication)</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|||||||
@@ -157,6 +157,10 @@
|
|||||||
<entry><literal>jump_last_buffer</literal></entry>
|
<entry><literal>jump_last_buffer</literal></entry>
|
||||||
<entry>jump to last buffer</entry>
|
<entry>jump to last buffer</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>jump_previous_buffer</literal></entry>
|
||||||
|
<entry>jump to previous buffer</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>jump_server</literal></entry>
|
<entry><literal>jump_server</literal></entry>
|
||||||
<entry>jump to server buffer</entry>
|
<entry>jump to server buffer</entry>
|
||||||
@@ -181,6 +185,10 @@
|
|||||||
<entry><literal>scroll_unread</literal></entry>
|
<entry><literal>scroll_unread</literal></entry>
|
||||||
<entry>scroll to first unread line in buffer</entry>
|
<entry>scroll to first unread line in buffer</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>set_unread</literal></entry>
|
||||||
|
<entry>set unread marker on all buffers</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>hotlist_clear</literal></entry>
|
<entry><literal>hotlist_clear</literal></entry>
|
||||||
<entry>clear hotlist</entry>
|
<entry>clear hotlist</entry>
|
||||||
|
|||||||
+350
-159
@@ -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
|
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
|
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.
|
(at your option) any later version.
|
||||||
|
|
||||||
This manual is distributed in the hope that it will be useful,
|
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.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
<bookinfo>
|
<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>
|
<subtitle>Fast, light and extensible IRC client</subtitle>
|
||||||
|
|
||||||
<author>
|
<author>
|
||||||
@@ -56,7 +55,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<para>
|
<para>
|
||||||
This manual is free software; you can redistribute it and/or modify
|
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
|
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.
|
(at your option) any later version.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
@@ -67,9 +66,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
||||||
02110-1301 USA
|
|
||||||
</para>
|
</para>
|
||||||
</legalnotice>
|
</legalnotice>
|
||||||
|
|
||||||
@@ -461,13 +458,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>Left arrow</entry>
|
<entry>Left arrow / Ctrl + B</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Go to previous char in command line
|
Go to previous char in command line
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Right arrow</entry>
|
<entry>Right arrow / Ctrl + F</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Go to next char in command line
|
Go to next char in command line
|
||||||
</entry>
|
</entry>
|
||||||
@@ -490,6 +487,36 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Go to the beginning of command line
|
Go to the beginning of command line
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry>End / Ctrl + E</entry>
|
<entry>End / Ctrl + E</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -515,6 +542,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
(two times: search exact text)
|
(two times: search exact text)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>Ctrl + S then Ctrl + U</entry>
|
||||||
|
<entry>
|
||||||
|
Set unread marker on all buffers
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Ctrl + T</entry>
|
<entry>Ctrl + T</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -546,7 +579,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Delete</entry>
|
<entry>Delete / Ctrl + D</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Delete next char in command line
|
Delete next char in command line
|
||||||
</entry>
|
</entry>
|
||||||
@@ -695,6 +728,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Switch to last buffer
|
Switch to last buffer
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>Alt + J then Alt + P</entry>
|
||||||
|
<entry>
|
||||||
|
Switch to buffer previously displayed
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Alt + J then Alt + R</entry>
|
<entry>Alt + J then Alt + R</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -807,7 +846,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
If option for sending IRC colors ("<literal>irc_colors_send</literal>")
|
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">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -818,20 +858,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>%B</entry>
|
<entry>^Cb</entry>
|
||||||
<entry>
|
<entry>
|
||||||
bold text
|
bold text
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx</entry>
|
<entry>^Ccxx</entry>
|
||||||
<entry>
|
<entry>
|
||||||
text color "<literal>xx</literal>"
|
text color "<literal>xx</literal>"
|
||||||
(see colors table below)
|
(see colors table below)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx,yy</entry>
|
<entry>^Ccxx,yy</entry>
|
||||||
<entry>
|
<entry>
|
||||||
text color "<literal>xx</literal>"
|
text color "<literal>xx</literal>"
|
||||||
and background "<literal>yy</literal>"
|
and background "<literal>yy</literal>"
|
||||||
@@ -839,38 +879,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%O</entry>
|
<entry>^Co</entry>
|
||||||
<entry>
|
<entry>
|
||||||
disable color and attributes
|
disable color and attributes
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%R</entry>
|
<entry>^Cr</entry>
|
||||||
<entry>
|
<entry>
|
||||||
reverse video (revert text color with background)
|
reverse video (revert text color with background)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%U</entry>
|
<entry>^Cu</entry>
|
||||||
<entry>
|
<entry>
|
||||||
underlined text
|
underlined text
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<entry>%%</entry>
|
|
||||||
<entry>
|
|
||||||
display one "<literal>%</literal>"
|
|
||||||
</entry>
|
|
||||||
</row>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</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.
|
attribute.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Color codes for %C are:
|
Color codes for ^Cc are:
|
||||||
<informaltable colsep="0" frame="none">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<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
|
Example: display of "<literal>hello everybody!</literal>" with
|
||||||
"<literal>hello</literal>" in light blue bold, and
|
"<literal>hello</literal>" in light blue bold, and
|
||||||
"<literal>everybody</literal>" in light red underlined:
|
"<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>
|
</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1111,114 +1145,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secFIFOpipe">
|
||||||
<title>FIFO pipe</title>
|
<title>FIFO pipe</title>
|
||||||
|
|
||||||
@@ -1281,7 +1207,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<screen>
|
<screen>
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ $# -eq 1 ]; then
|
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
|
echo -e "$1" >$fifo
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -1853,6 +1780,62 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Return value: none.
|
Return value: none.
|
||||||
</para>
|
</para>
|
||||||
@@ -1862,6 +1845,10 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
plugin->print (plugin, NULL, NULL, "hello");
|
plugin->print (plugin, NULL, NULL, "hello");
|
||||||
plugin->print (plugin, NULL, "#weechat", "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 bold \x0F\x03%02d blue \x03%02d green",
|
||||||
|
plugin->get_irc_color (plugin, "blue"),
|
||||||
|
plugin->get_irc_color (plugin, "green"));
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
@@ -1894,6 +1881,9 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
To display colored text, see <xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Return value: none.
|
Return value: none.
|
||||||
</para>
|
</para>
|
||||||
@@ -2278,6 +2268,14 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
|||||||
<entry><literal>%-</literal></entry>
|
<entry><literal>%-</literal></entry>
|
||||||
<entry>no completion for argument</entry>
|
<entry>no completion for argument</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><literal>%a</literal></entry>
|
<entry><literal>%a</literal></entry>
|
||||||
<entry>alias</entry>
|
<entry>alias</entry>
|
||||||
@@ -2692,27 +2690,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<option>event</option> : event, see table below:
|
<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>
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2728,8 +2706,7 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</command>
|
</command>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Argument argc is set to 1, argv[0] is number of buffer
|
Arguments depend on event (see table below).
|
||||||
open/closed.
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2746,6 +2723,43 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &my_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Return value: pointer to new event handler.
|
Return value: pointer to new event handler.
|
||||||
</para>
|
</para>
|
||||||
@@ -4896,6 +4910,114 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secScriptsPlugins">
|
||||||
<title>Scripts plugins</title>
|
<title>Scripts plugins</title>
|
||||||
|
|
||||||
@@ -5256,6 +5378,9 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
To display colored text, see <xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Return value: 1 if success, 0 if an error occurred.
|
Return value: 1 if success, 0 if an error occurred.
|
||||||
</para>
|
</para>
|
||||||
@@ -5266,6 +5391,7 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
weechat::print("message");
|
weechat::print("message");
|
||||||
weechat::print("message", "#weechat");
|
weechat::print("message", "#weechat");
|
||||||
weechat::print("message", "#weechat", "freenode");
|
weechat::print("message", "#weechat", "freenode");
|
||||||
|
weechat::print("test: \x0305 red \x0F normal");
|
||||||
|
|
||||||
# python
|
# python
|
||||||
weechat.prnt("message")
|
weechat.prnt("message")
|
||||||
@@ -5285,6 +5411,71 @@ weechat.print("message", "#weechat", "freenode")
|
|||||||
</para>
|
</para>
|
||||||
</section>
|
</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">
|
<section id="secScript_print_infobar">
|
||||||
<title>print_infobar</title>
|
<title>print_infobar</title>
|
||||||
|
|
||||||
|
|||||||
+50
-17
@@ -28,9 +28,22 @@ manage buffers
|
|||||||
list: list open buffers (no parameter implies this list)
|
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)
|
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)
|
(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,
|
server,
|
||||||
channel: jump to buffer by server and/or channel name
|
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>
|
</programlisting>
|
||||||
<command>builtin command</command>
|
<command>builtin command</command>
|
||||||
@@ -41,7 +54,7 @@ command: command to execute (a '/' is automatically added if not found at beginn
|
|||||||
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>clear [-all | number]</command>
|
<command>clear [-all | number [number ...]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
clear window(s)
|
clear window(s)
|
||||||
|
|
||||||
@@ -49,12 +62,17 @@ clear window(s)
|
|||||||
number: clear buffer by number
|
number: clear buffer by number
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>connect [-all | servername [servername ...]]</command>
|
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
connect to server(s)
|
connect to server(s)
|
||||||
|
|
||||||
-all: connect to all servers
|
-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>
|
</programlisting>
|
||||||
<command>disconnect [-all | servername [servername ...]]</command>
|
<command>disconnect [-all | servername [servername ...]]</command>
|
||||||
@@ -74,11 +92,12 @@ nickname: nickname to send file or chat
|
|||||||
file: filename (on local host)
|
file: filename (on local host)
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>debug dump | windows</command>
|
<command>debug dump | buffer | windows</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
print debug messages
|
print debug messages
|
||||||
|
|
||||||
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
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
|
windows: display windows tree
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@@ -136,21 +155,35 @@ autoload: autoload plugins in system or user directory
|
|||||||
Without argument, /plugin command lists loaded plugins.
|
Without argument, /plugin command lists loaded plugins.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>reconnect [-all | servername [servername ...]]</command>
|
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
reconnect to server(s)
|
reconnect to server(s)
|
||||||
|
|
||||||
-all: reconnect to all servers
|
-all: reconnect to all servers
|
||||||
servername: server name to reconnect
|
servername: server name to reconnect
|
||||||
|
-nojoin: do not join any channel (even if autojoin is enabled on server)
|
||||||
|
|
||||||
</programlisting>
|
</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>
|
<programlisting>
|
||||||
list, add or remove servers
|
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
|
servername: server name, for internal and display use
|
||||||
hostname: name or IP address of server
|
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
|
ipv6: use IPv6 protocol
|
||||||
ssl: use SSL protocol
|
ssl: use SSL protocol
|
||||||
password: password for server
|
password: password for server
|
||||||
@@ -159,13 +192,11 @@ servername: server name, for internal and display use
|
|||||||
nick3: second alternate nick for server
|
nick3: second alternate nick for server
|
||||||
username: user name
|
username: user name
|
||||||
realname: real name of user
|
realname: real name of user
|
||||||
|
copy: duplicate a server
|
||||||
</programlisting>
|
rename: rename a server
|
||||||
<command>save [file]</command>
|
keep: keep server in config file (for temporary servers only)
|
||||||
<programlisting>
|
del: delete a server
|
||||||
save config to disk
|
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
|
||||||
|
|
||||||
file: filename for writing config
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>set [option [ = value]]</command>
|
<command>set [option [ = value]]</command>
|
||||||
@@ -210,11 +241,13 @@ For each argument, '*' means all.
|
|||||||
Without argument, /unignore command lists all defined ignore.
|
Without argument, /unignore command lists all defined ignore.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>upgrade</command>
|
<command>upgrade [path_to_binary]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
upgrade WeeChat without disconnecting from servers
|
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>
|
</programlisting>
|
||||||
<command>uptime [-o]</command>
|
<command>uptime [-o]</command>
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = fr
|
LANGCODE = fr
|
||||||
|
|||||||
+40
-5
@@ -108,7 +108,7 @@
|
|||||||
<entry>entier</entry>
|
<entry>entier</entry>
|
||||||
<entry>entre 0 et 100</entry>
|
<entry>entre 0 et 100</entry>
|
||||||
<entry>0</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 > 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 > 0, alors la taille est fixe))</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>look_nicklist_separator</option></entry>
|
<entry><option>look_nicklist_separator</option></entry>
|
||||||
@@ -180,6 +180,13 @@
|
|||||||
<entry>20</entry>
|
<entry>20</entry>
|
||||||
<entry>Taille maximum pour l'alignement des pseudos et autres messages (doit être >= à look_align_size)</entry>
|
<entry>Taille maximum pour l'alignement des pseudos et autres messages (doit être >= à look_align_size)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_nick_completor</option></entry>
|
<entry><option>look_nick_completor</option></entry>
|
||||||
<entry>chaîne</entry>
|
<entry>chaîne</entry>
|
||||||
@@ -257,6 +264,13 @@
|
|||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Nombre maximum des noms dans la liste d'activité (0 = pas de limite)</entry>
|
<entry>Nombre maximum des noms dans la liste d'activité (0 = pas de limite)</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>look_day_change</option></entry>
|
<entry><option>look_day_change</option></entry>
|
||||||
<entry>booléen</entry>
|
<entry>booléen</entry>
|
||||||
@@ -273,8 +287,8 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>look_read_marker</option></entry>
|
<entry><option>look_read_marker</option></entry>
|
||||||
<entry>chaîne</entry>
|
<entry>caractère</entry>
|
||||||
<entry>toute chaîne</entry>
|
<entry>tout caractère</entry>
|
||||||
<entry>' '</entry>
|
<entry>' '</entry>
|
||||||
<entry>Utiliser un marqueur sur les serveurs/canaux pour montrer la première ligne non lue</entry>
|
<entry>Utiliser un marqueur sur les serveurs/canaux pour montrer la première ligne non lue</entry>
|
||||||
</row>
|
</row>
|
||||||
@@ -285,6 +299,13 @@
|
|||||||
<entry>'[%n(%m)] '</entry>
|
<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>
|
<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>
|
||||||
|
<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>
|
<row>
|
||||||
<entry><option>col_real_white</option></entry>
|
<entry><option>col_real_white</option></entry>
|
||||||
<entry>booléen</entry>
|
<entry>booléen</entry>
|
||||||
@@ -565,6 +586,13 @@
|
|||||||
<entry>'red'</entry>
|
<entry>'red'</entry>
|
||||||
<entry>Couleur pour le texte non trouvé</entry>
|
<entry>Couleur pour le texte non trouvé</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_input_bg</option></entry>
|
<entry><option>col_input_bg</option></entry>
|
||||||
<entry>couleur</entry>
|
<entry>couleur</entry>
|
||||||
@@ -621,6 +649,13 @@
|
|||||||
<entry>'yellow'</entry>
|
<entry>'yellow'</entry>
|
||||||
<entry>Couleur pour le symbole voix</entry>
|
<entry>Couleur pour le symbole voix</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><option>col_nick_more</option></entry>
|
<entry><option>col_nick_more</option></entry>
|
||||||
<entry>couleur</entry>
|
<entry>couleur</entry>
|
||||||
@@ -948,7 +983,7 @@
|
|||||||
<entry>booléen</entry>
|
<entry>booléen</entry>
|
||||||
<entry>'on' ou 'off'</entry>
|
<entry>'on' ou 'off'</entry>
|
||||||
<entry>'on'</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>
|
||||||
<row>
|
<row>
|
||||||
<entry><option>irc_send_unknown_commands</option></entry>
|
<entry><option>irc_send_unknown_commands</option></entry>
|
||||||
@@ -1226,7 +1261,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<entry><option>server_command_delay</option></entry>
|
<entry><option>server_command_delay</option></entry>
|
||||||
<entry>entier</entry>
|
<entry>entier</entry>
|
||||||
<entry>entre 0 et 5</entry>
|
<entry>entre 0 et 3600</entry>
|
||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>Délai (en secondes) après exécution de la commande (exemple: donner du temps pour l'authentification)</entry>
|
<entry>Délai (en secondes) après exécution de la commande (exemple: donner du temps pour l'authentification)</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|||||||
@@ -157,6 +157,10 @@
|
|||||||
<entry><literal>jump_last_buffer</literal></entry>
|
<entry><literal>jump_last_buffer</literal></entry>
|
||||||
<entry>sauter au dernier tampon</entry>
|
<entry>sauter au dernier tampon</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>jump_previous_buffer</literal></entry>
|
||||||
|
<entry>sauter au tampon précédent</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>jump_server</literal></entry>
|
<entry><literal>jump_server</literal></entry>
|
||||||
<entry>sauter au tampon du serveur</entry>
|
<entry>sauter au tampon du serveur</entry>
|
||||||
@@ -181,6 +185,10 @@
|
|||||||
<entry><literal>scroll_unread</literal></entry>
|
<entry><literal>scroll_unread</literal></entry>
|
||||||
<entry>faire défiler jusqu'à la première ligne non lue du tampon</entry>
|
<entry>faire défiler jusqu'à la première ligne non lue du tampon</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal>set_unread</literal></entry>
|
||||||
|
<entry>positionner le marqueur de données non lues sur tous les tampons</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>hotlist_clear</literal></entry>
|
<entry><literal>hotlist_clear</literal></entry>
|
||||||
<entry>effacer la liste d'activité</entry>
|
<entry>effacer la liste d'activité</entry>
|
||||||
|
|||||||
+370
-170
@@ -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
|
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
|
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.
|
(at your option) any later version.
|
||||||
|
|
||||||
This manual is distributed in the hope that it will be useful,
|
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.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@@ -36,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
<bookinfo>
|
<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>
|
<subtitle>Client IRC rapide, léger et extensible</subtitle>
|
||||||
|
|
||||||
<author>
|
<author>
|
||||||
@@ -56,7 +55,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<para>
|
<para>
|
||||||
This manual is free software; you can redistribute it and/or modify
|
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
|
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.
|
(at your option) any later version.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
@@ -67,9 +66,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
||||||
02110-1301 USA
|
|
||||||
</para>
|
</para>
|
||||||
</legalnotice>
|
</legalnotice>
|
||||||
|
|
||||||
@@ -470,13 +467,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>Flèche gauche</entry>
|
<entry>Flèche gauche / Ctrl + B</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Aller au caractère précédent sur la ligne de commande
|
Aller au caractère précédent sur la ligne de commande
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Flèche droite</entry>
|
<entry>Flèche droite / Ctrl + F</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Aller au caractère suivant sur la ligne de commande
|
Aller au caractère suivant sur la ligne de commande
|
||||||
</entry>
|
</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
|
Aller au début de la ligne de commande
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry>End / Ctrl + E</entry>
|
<entry>End / Ctrl + E</entry>
|
||||||
<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)
|
(deux appuis successifs pour rechercher du texte exact)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry>Ctrl + T</entry>
|
<entry>Ctrl + T</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -555,7 +589,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Delete</entry>
|
<entry>Delete / Ctrl + D</entry>
|
||||||
<entry>
|
<entry>
|
||||||
Effacer le caractère suivant sur la ligne de commande
|
Effacer le caractère suivant sur la ligne de commande
|
||||||
</entry>
|
</entry>
|
||||||
@@ -706,6 +740,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
Sauter au dernier tampon
|
Sauter au dernier tampon
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>Alt + J puis Alt + P</entry>
|
||||||
|
<entry>
|
||||||
|
Sauter au tampon affiché précédemment
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>Alt + J puis Alt + R</entry>
|
<entry>Alt + J puis Alt + R</entry>
|
||||||
<entry>
|
<entry>
|
||||||
@@ -821,7 +861,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<para>
|
<para>
|
||||||
Si l'option d'envoi des couleurs IRC
|
Si l'option d'envoi des couleurs IRC
|
||||||
("<literal>irc_colors_send</literal>") est activée, il est possible
|
("<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">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -832,20 +873,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>%B</entry>
|
<entry>^Cb</entry>
|
||||||
<entry>
|
<entry>
|
||||||
texte gras
|
texte gras
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx</entry>
|
<entry>^Ccxx</entry>
|
||||||
<entry>
|
<entry>
|
||||||
couleur du texte "<literal>xx</literal>"
|
couleur du texte "<literal>xx</literal>"
|
||||||
(voir le tableau des couleurs ci-dessous)
|
(voir le tableau des couleurs ci-dessous)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%Cxx,yy</entry>
|
<entry>^Ccxx,yy</entry>
|
||||||
<entry>
|
<entry>
|
||||||
couleur du texte "<literal>xx</literal>"
|
couleur du texte "<literal>xx</literal>"
|
||||||
et du fond "<literal>yy</literal>"
|
et du fond "<literal>yy</literal>"
|
||||||
@@ -853,38 +894,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%O</entry>
|
<entry>^Co</entry>
|
||||||
<entry>
|
<entry>
|
||||||
désactiver la couleur et tous les attributs
|
désactiver la couleur et tous les attributs
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%R</entry>
|
<entry>^Cr</entry>
|
||||||
<entry>
|
<entry>
|
||||||
vidéo inverse (inversion de la couleur d'écriture et du fond)
|
vidéo inverse (inversion de la couleur d'écriture et du fond)
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>%U</entry>
|
<entry>^Cu</entry>
|
||||||
<entry>
|
<entry>
|
||||||
texte souligné
|
texte souligné
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<entry>%%</entry>
|
|
||||||
<entry>
|
|
||||||
afficher un seul "<literal>%</literal>"
|
|
||||||
</entry>
|
|
||||||
</row>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</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.
|
l'attribut défini.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Les codes couleur pour %C sont :
|
Les codes couleur pour ^Cc sont :
|
||||||
<informaltable colsep="0" frame="none">
|
<informaltable colsep="0" frame="none">
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<thead>
|
<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>"
|
Exemple : affichage de "<literal>bonjour tout le monde !</literal>"
|
||||||
avec "<literal>bonjour</literal>" en bleu clair gras, et
|
avec "<literal>bonjour</literal>" en bleu clair gras, et
|
||||||
"<literal>tout le monde</literal>" en rouge clair souligné :
|
"<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>
|
</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1125,124 +1160,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secTubeFIFO">
|
||||||
<title>Tube FIFO</title>
|
<title>Tube FIFO</title>
|
||||||
|
|
||||||
@@ -1307,7 +1224,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<screen>
|
<screen>
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ $# -eq 1 ]; then
|
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
|
echo -e "$1" >$fifo
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -1900,6 +1818,65 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Valeur renvoyée : aucune.
|
Valeur renvoyée : aucune.
|
||||||
</para>
|
</para>
|
||||||
@@ -1909,6 +1886,11 @@ plugin->exec_on_files (plugin, "/tmp", &callback);
|
|||||||
plugin->print (plugin, NULL, NULL, "hello");
|
plugin->print (plugin, NULL, NULL, "hello");
|
||||||
plugin->print (plugin, NULL, "#weechat", "hello");
|
plugin->print (plugin, NULL, "#weechat", "hello");
|
||||||
plugin->print (plugin, "freenode", "#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>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
@@ -1942,6 +1924,10 @@ plugin->print (plugin, "freenode", "#weechat", "hello");
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Pour afficher du texte en couleur, voir
|
||||||
|
<xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Valeur renvoyée : aucune.
|
Valeur renvoyée : aucune.
|
||||||
</para>
|
</para>
|
||||||
@@ -2335,6 +2321,14 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
|||||||
<entry><literal>%-</literal></entry>
|
<entry><literal>%-</literal></entry>
|
||||||
<entry>aucune complétion pour le paramètre</entry>
|
<entry>aucune complétion pour le paramètre</entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry><literal>%a</literal></entry>
|
<entry><literal>%a</literal></entry>
|
||||||
<entry>alias</entry>
|
<entry>alias</entry>
|
||||||
@@ -2763,28 +2757,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &mon_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<option>évènement</option> : évènement, voir le tableau
|
<option>évènement</option> : évènement (voir le tableau
|
||||||
ci-dessous :
|
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>
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2800,8 +2774,8 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &mon_keyb);
|
|||||||
</command>
|
</command>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Le paramètre argc vaut 1 et argv[0] contient le numéro
|
Les paramètres passés à la fonction dépendent de l'évènement
|
||||||
du tampon ouvert ou fermé.
|
(voir le tableau ci-dessous).
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -2818,6 +2792,43 @@ keyb_handler = plugin->keyboard_handler_add (plugin, &mon_keyb);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</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>
|
<para>
|
||||||
Valeur renvoyée : le pointeur vers le nouveau gestionnaire
|
Valeur renvoyée : le pointeur vers le nouveau gestionnaire
|
||||||
d'évènement.
|
d'évènement.
|
||||||
@@ -5027,6 +5038,124 @@ void weechat_plugin_end (t_weechat_plugin *plugin)
|
|||||||
|
|
||||||
</section>
|
</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">
|
<section id="secExtensionsScripts">
|
||||||
<title>Extensions pour scripts</title>
|
<title>Extensions pour scripts</title>
|
||||||
|
|
||||||
@@ -5391,6 +5520,10 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Pour afficher du texte en couleur, voir
|
||||||
|
<xref linkend="secAPI_print" />.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
|
Valeur renvoyée : 1 si succès, 0 si une erreur s'est produite.
|
||||||
</para>
|
</para>
|
||||||
@@ -5401,6 +5534,7 @@ weechat.set_charset("ISO-8859-1")
|
|||||||
weechat::print("message");
|
weechat::print("message");
|
||||||
weechat::print("message", "#weechat");
|
weechat::print("message", "#weechat");
|
||||||
weechat::print("message", "#weechat", "freenode");
|
weechat::print("message", "#weechat", "freenode");
|
||||||
|
weechat::print("test: \x0305 rouge \x0F normal");
|
||||||
|
|
||||||
# python
|
# python
|
||||||
weechat.prnt("message")
|
weechat.prnt("message")
|
||||||
@@ -5420,6 +5554,72 @@ weechat.print("message", "#weechat", "freenode")
|
|||||||
</para>
|
</para>
|
||||||
</section>
|
</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">
|
<section id="secScript_print_infobar">
|
||||||
<title>print_infobar</title>
|
<title>print_infobar</title>
|
||||||
|
|
||||||
|
|||||||
+51
-18
@@ -28,9 +28,22 @@ gestion des tampons
|
|||||||
list: liste les tampons ouverts (pas de paramètre affiche cette liste)
|
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)
|
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)
|
(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,
|
serveur,
|
||||||
canal: saute au tampon par serveur et/ou nom de canal
|
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>
|
</programlisting>
|
||||||
<command>builtin commande</command>
|
<command>builtin commande</command>
|
||||||
@@ -41,20 +54,25 @@ commande: commande
|
|||||||
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>clear [-all | nombre]</command>
|
<command>clear [-all | numéro [numéro ...]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
effacer la/les fenêtre(s)
|
effacer la/les fenêtre(s)
|
||||||
|
|
||||||
-all: effacer tous les tampons
|
-all: effacer tous les tampons
|
||||||
nombre: effacer un tampon par son numéro
|
numéro: effacer un tampon par son numéro
|
||||||
|
|
||||||
</programlisting>
|
</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>
|
<programlisting>
|
||||||
se connecter à un/plusieurs serveur(s)
|
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
|
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>
|
</programlisting>
|
||||||
<command>disconnect [-all | nom_serveur [nom_serveur...]]</command>
|
<command>disconnect [-all | nom_serveur [nom_serveur...]]</command>
|
||||||
@@ -74,11 +92,12 @@ d
|
|||||||
fichier: nom du fichier (sur la machine locale)
|
fichier: nom du fichier (sur la machine locale)
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>debug dump | windows</command>
|
<command>debug dump | buffer | windows</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
affiche des messages de debogage
|
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)
|
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
|
windows: affiche l'arbre des fenêtres
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@@ -136,21 +155,35 @@ autoload: charger automatiquement les extensions dans un r
|
|||||||
Sans paramètre, la commande /plugin liste les extensions chargées.
|
Sans paramètre, la commande /plugin liste les extensions chargées.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>reconnect [-all | nom_serveur [nom_serveur...]]</command>
|
<command>reconnect [-all [-nojoin] | nom_serveur [nom_serveur...] [-nojoin]]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
se reconnecter à un/plusieurs serveur(s)
|
se reconnecter à un/plusieurs serveur(s)
|
||||||
|
|
||||||
-all: se reconnecter à tous les serveurs
|
-all: se reconnecter à tous les serveurs
|
||||||
nom_serveur: nom du serveur pour se reconnecter
|
nom_serveur: nom du serveur pour se reconnecter
|
||||||
|
-nojoin: ne rejoindre aucun canal (même si l'autojoin est activé pour le serveur)
|
||||||
|
|
||||||
</programlisting>
|
</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>
|
<programlisting>
|
||||||
liste, ajoute ou retire des serveurs
|
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_serveur: nom du serveur, pour usage interne et affichage
|
||||||
nom/IP: nom ou adresse IP du serveur
|
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
|
ipv6: utiliser le protocole IPv6
|
||||||
ssl: utiliser le protocole SSL
|
ssl: utiliser le protocole SSL
|
||||||
mot_de_passe: mot de passe pour le serveur
|
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
|
pseudo3: second pseudo alternatif pour le serveur
|
||||||
nom_utilisateur: nom d'utilisateur
|
nom_utilisateur: nom d'utilisateur
|
||||||
nom_réel: nom réel de l'utilisateur
|
nom_réel: nom réel de l'utilisateur
|
||||||
|
copy: dupliquer un serveur
|
||||||
</programlisting>
|
rename: renommer un serveur
|
||||||
<command>save [fichier]</command>
|
keep: garder le serveur dans le fichier de configuration (pour les serveurs temporaires seulement)
|
||||||
<programlisting>
|
del: supprimer un serveur
|
||||||
sauvegarder la configuration sur disque
|
deloutq: supprimer la file d'attente des messages sortants pour tous les serveurs (tous les messages que WeeChat est actuellement en train d'envoyer)
|
||||||
|
|
||||||
fichier: fichier pour sauvegarder la configuration
|
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>set [option [ = valeur]]</command>
|
<command>set [option [ = valeur]]</command>
|
||||||
@@ -210,11 +241,13 @@ Pour chaque param
|
|||||||
Sans paramètre, /ignore liste les ignore définis.
|
Sans paramètre, /ignore liste les ignore définis.
|
||||||
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<command>upgrade</command>
|
<command>upgrade [chemin_vers_binaire]</command>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
mettre à jour WeeChat sans se déconnecter des serveurs
|
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>
|
</programlisting>
|
||||||
<command>uptime [-o]</command>
|
<command>uptime [-o]</command>
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = pl
|
LANGCODE = pl
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = ru
|
LANGCODE = ru
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
LANGCODE = sco
|
LANGCODE = sco
|
||||||
|
|||||||
@@ -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)/
|
||||||
@@ -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,4 +1,4 @@
|
|||||||
.TH WEECHAT 1 "June 2007" "FlashCode"
|
.TH WEECHAT 1 "September 2007" "FlashCode"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
|
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SET(PO_FILES
|
SET(PO_FILES
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
DOMAIN = $(PACKAGE)
|
DOMAIN = $(PACKAGE)
|
||||||
subdir = po
|
subdir = po
|
||||||
top_builddir = ..
|
top_builddir = ..
|
||||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
|
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=NG_:1,2
|
||||||
COPYRIGHT_HOLDER =
|
COPYRIGHT_HOLDER =
|
||||||
EXTRA_LOCALE_CATEGORIES =
|
EXTRA_LOCALE_CATEGORIES =
|
||||||
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
|
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
|
||||||
|
|||||||
+1447
-1233
File diff suppressed because it is too large
Load Diff
@@ -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
|
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,22 +12,22 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Speaker beep on highlight/private msg.
|
# Speaker beep on highlight/private msg.
|
||||||
#
|
#
|
||||||
# History:
|
# History:
|
||||||
#
|
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
|
||||||
|
# version 0.2: upgraded licence to GPL 3
|
||||||
# 2006-09-02, FlashCode <flashcode@flashtux.org>:
|
# 2006-09-02, FlashCode <flashcode@flashtux.org>:
|
||||||
# initial release
|
# version 0.1: initial release
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my $version = "0.1";
|
my $version = "0.2";
|
||||||
my $beep_command = "echo -n \a";
|
my $beep_command = "echo -n \a";
|
||||||
|
|
||||||
# default values in setup file (~/.weechat/plugins.rc)
|
# default values in setup file (~/.weechat/plugins.rc)
|
||||||
|
|||||||
+10
-7
@@ -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
|
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,8 +12,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -21,20 +20,24 @@
|
|||||||
#
|
#
|
||||||
# History:
|
# 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>:
|
# 2006-10-27, FlashCode <flashcode@flashtux.org>:
|
||||||
# initial release
|
# version 0.1: initial release
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my $version = "0.1";
|
my $version = "0.3";
|
||||||
|
|
||||||
weechat::register("bufsave", $version, "", "Save buffer content to a file");
|
weechat::register("bufsave", $version, "", "Save buffer content to a file");
|
||||||
weechat::add_command_handler("bufsave", "bufsave_cmd",
|
weechat::add_command_handler("bufsave", "bufsave_cmd",
|
||||||
"save current buffer to a file",
|
"save current buffer to a file",
|
||||||
"filename",
|
"filename",
|
||||||
"filename: target file (must not exist)",
|
"filename: target file (must not exist)",
|
||||||
"");
|
"%f");
|
||||||
|
|
||||||
sub bufsave_cmd
|
sub bufsave_cmd
|
||||||
{
|
{
|
||||||
|
|||||||
+81
-81
@@ -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
|
# Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
|
||||||
# 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.
|
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# the Free Software Foundation; either version 3 of the License, or
|
||||||
# GNU General Public License for more details.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# 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>
|
# You should have received a copy of the GNU General Public License
|
||||||
# Mis à jour le 04/06/2005, FlashCode <flashcode@flashtux.org>
|
# 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;
|
use locale;
|
||||||
|
|
||||||
my $version = "0.4";
|
my $version = "0.7";
|
||||||
weechat::register ("Fete", $version, "", "Gestion des fêtes du calendrier français");
|
|
||||||
weechat::print ("Script 'Fete' $version chargé");
|
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);
|
weechat::add_command_handler ("fete", fete);
|
||||||
|
|
||||||
@noms_jours = qw(Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi);
|
@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 = (
|
@fetes = (
|
||||||
# janvier
|
# janvier
|
||||||
[ '!Marie - JOUR de l\'AN', '&Basile', '!Geneviève', '&Odilon', '&Edouard',
|
[ '!Marie - JOUR de l\'AN', '&Basile', '!Geneviève', '&Odilon', '&Edouard',
|
||||||
'&Mélaine', '&Raymond', '&Lucien', '!Alix', '&Guillaume', '&Paulin',
|
'&Mélaine', '&Raymond', '&Lucien', '!Alix', '&Guillaume', '&Paulin',
|
||||||
'!Tatiana', '!Yvette', '!Nina', '&Rémi', '&Marcel', '!Roseline',
|
'!Tatiana', '!Yvette', '!Nina', '&Rémi', '&Marcel', '!Roseline',
|
||||||
'!Prisca', '&Marius', '&Sébastien', '!Agnès', '&Vincent', '&Barnard',
|
'!Prisca', '&Marius', '&Sébastien', '!Agnès', '&Vincent', '&Barnard',
|
||||||
'&François de Sales', '-Conversion de St Paul', '!Paule', '!Angèle',
|
'&François de Sales', '-Conversion de St Paul', '!Paule', '!Angèle',
|
||||||
'&Thomas d\'Aquin', '&Gildas', '!Martine', '!Marcelle' ],
|
'&Thomas d\'Aquin', '&Gildas', '!Martine', '!Marcelle' ],
|
||||||
# février
|
# février
|
||||||
[ '!Ella', '-Présentation', '&Blaise', '!Véronique', '!Agathe',
|
[ '!Ella', '-Présentation', '&Blaise', '!Véronique', '!Agathe',
|
||||||
'&Gaston', '!Eugénie', '!Jacqueline', '!Apolline', '&Arnaud',
|
'&Gaston', '!Eugénie', '!Jacqueline', '!Apolline', '&Arnaud',
|
||||||
'-Notre-Dame de Lourdes', '&Félix', '!Béatrice', '&Valentin', '&Claude',
|
'-Notre-Dame de Lourdes', '&Félix', '!Béatrice', '&Valentin', '&Claude',
|
||||||
'!Julienne', '&Alexis', '!Bernadette', '&Gabin', '!Aimée',
|
'!Julienne', '&Alexis', '!Bernadette', '&Gabin', '!Aimée',
|
||||||
'&Pierre Damien', '!Isabelle', '&Lazare', '&Modeste', '&Roméo', '&Nestor',
|
'&Pierre Damien', '!Isabelle', '&Lazare', '&Modeste', '&Roméo', '&Nestor',
|
||||||
'!Honorine', '&Romain', '&Auguste' ],
|
'!Honorine', '&Romain', '&Auguste' ],
|
||||||
# mars
|
# mars
|
||||||
[ '&Aubin', '&Charles le Bon', '&Guénolé', '&Casimir', '&Olive', '&Colette',
|
[ '&Aubin', '&Charles le Bon', '&Guénolé', '&Casimir', '&Olive', '&Colette',
|
||||||
'!Félicité', '&Jean de Dieu', '!Françoise', '&Vivien', '!Rosine',
|
'!Félicité', '&Jean de Dieu', '!Françoise', '&Vivien', '!Rosine',
|
||||||
'!Justine', '&Rodrigue', '!Mathilde', '!Louise de Marillac', '!Bénédicte',
|
'!Justine', '&Rodrigue', '!Mathilde', '!Louise de Marillac', '!Bénédicte',
|
||||||
'&Patrice', '&Cyrille', '&Joseph', '&Herbert', '!Clémence', '!Léa',
|
'&Patrice', '&Cyrille', '&Joseph', '&Herbert', '!Clémence', '!Léa',
|
||||||
'&Victorien', '!Catherine de Suède', '-Annonciation', '!Larissa',
|
'&Victorien', '!Catherine de Suède', '-Annonciation', '!Larissa',
|
||||||
'&Habib', '&Gontran', '!Gwladys', '&Amédée', '&Benjamin' ],
|
'&Habib', '&Gontran', '!Gwladys', '&Amédée', '&Benjamin' ],
|
||||||
# avril
|
# avril
|
||||||
[ '&Hugues', '!Sandrine', '&Richard', '&Isodore', '!Irène', '&Marcellin',
|
[ '&Hugues', '!Sandrine', '&Richard', '&Isodore', '!Irène', '&Marcellin',
|
||||||
'&Jean-Baptiste de la Salle', '!Julie', '&Gautier', '&Fulbert',
|
'&Jean-Baptiste de la Salle', '!Julie', '&Gautier', '&Fulbert',
|
||||||
'&Stanislas', '&Jules', '!Ida', '&Maxime', '&Paterne',
|
'&Stanislas', '&Jules', '!Ida', '&Maxime', '&Paterne',
|
||||||
'&Benoît-Joseph Labre', '&Anicet', '&Parfait', '!Emma', '!Odette',
|
'&Benoît-Joseph Labre', '&Anicet', '&Parfait', '!Emma', '!Odette',
|
||||||
'&Anselme', '&Alexandre', '&Georges', '&Fidèle', '&Marc', '!Alida',
|
'&Anselme', '&Alexandre', '&Georges', '&Fidèle', '&Marc', '!Alida',
|
||||||
'!Zita', '!Valérie', '!Catherine de Sienne', '&Robert' ],
|
'!Zita', '!Valérie', '!Catherine de Sienne', '&Robert' ],
|
||||||
# mai
|
# mai
|
||||||
[ '&Jérémie - FETE du TRAVAIL', '&Boris', '&Philippe / Jacques', '&Sylvain',
|
[ '&Jérémie - FETE du TRAVAIL', '&Boris', '&Philippe / Jacques', '&Sylvain',
|
||||||
'!Judith', '!Prudence', '!Gisèle', '&Désiré - ANNIVERSAIRE 1945',
|
'!Judith', '!Prudence', '!Gisèle', '&Désiré - ANNIVERSAIRE 1945',
|
||||||
'&Pacôme', '!Solange', '!Estelle', '&Achille', '!Rolande', '&Mathias',
|
'&Pacôme', '!Solange', '!Estelle', '&Achille', '!Rolande', '&Mathias',
|
||||||
'!Denise', '&Honoré', '&Pascal', '&Eric', '&Yves', '&Bernardin',
|
'!Denise', '&Honoré', '&Pascal', '&Eric', '&Yves', '&Bernardin',
|
||||||
'&Constantin', '&Emile', '&Didier', '&Donatien', '!Sophie', '&Bérenger',
|
'&Constantin', '&Emile', '&Didier', '&Donatien', '!Sophie', '&Bérenger',
|
||||||
'&Augustin', '&Germain', '&Aymar', '&Ferdinand', '-Visitation' ],
|
'&Augustin', '&Germain', '&Aymar', '&Ferdinand', '-Visitation' ],
|
||||||
# juin
|
# juin
|
||||||
[ '&Justin', '!Blandine', '&Kévin', '!Clotilde', '&Igor', '&Norbert',
|
[ '&Justin', '!Blandine', '&Kévin', '!Clotilde', '&Igor', '&Norbert',
|
||||||
'&Gilbert', '&Médard', '!Diane', '&Landry', '&Barnabé', '&Guy',
|
'&Gilbert', '&Médard', '!Diane', '&Landry', '&Barnabé', '&Guy',
|
||||||
'&Antoine de Padoue', '&Elisée', '!Germaine', '&Jean-François Régis',
|
'&Antoine de Padoue', '&Elisée', '!Germaine', '&Jean-François Régis',
|
||||||
'&Hervé', '&Léonce', '&Romuald', '&Silvère', '&Rodolphe', '&Alban',
|
'&Hervé', '&Léonce', '&Romuald', '&Silvère', '&Rodolphe', '&Alban',
|
||||||
'!Audrey', '&Jean-Baptiste', '&Salomon', '&Anthelme', '&Fernand',
|
'!Audrey', '&Jean-Baptiste', '&Salomon', '&Anthelme', '&Fernand',
|
||||||
'&Irénée', '&Pierre / Paul', '&Martial' ],
|
'&Irénée', '&Pierre / Paul', '&Martial' ],
|
||||||
# juillet
|
# juillet
|
||||||
[ '&Thierry', '&Martinien', '&Thomas', '&Florent', '&Antoine', '!Mariette',
|
[ '&Thierry', '&Martinien', '&Thomas', '&Florent', '&Antoine', '!Mariette',
|
||||||
'&Raoul', '&Thibaut', '!Amandine', '&Ulrich', '&Benoît', '&Olivier',
|
'&Raoul', '&Thibaut', '!Amandine', '&Ulrich', '&Benoît', '&Olivier',
|
||||||
'&Henri / Joël', '!Camille - FETE NATIONALE', '&Donald',
|
'&Henri / Joël', '!Camille - FETE NATIONALE', '&Donald',
|
||||||
'-N.D. du Mont Carmel', '!Charlotte', '&Frédéric', '&Arsène', '!Marina',
|
'-N.D. du Mont Carmel', '!Charlotte', '&Frédéric', '&Arsène', '!Marina',
|
||||||
'&Victor', '!Marie-Madeleine', '!Brigitte', '!Christine', '&Jacques',
|
'&Victor', '!Marie-Madeleine', '!Brigitte', '!Christine', '&Jacques',
|
||||||
'&Anne', '!Nathalie', '&Samson', '!Marthe', '!Juliette',
|
'&Anne', '!Nathalie', '&Samson', '!Marthe', '!Juliette',
|
||||||
'&Ignace de Loyola' ],
|
'&Ignace de Loyola' ],
|
||||||
# août
|
# août
|
||||||
[ '&Alphonse', '&Julien', '!Lydie', '&Jean-Marie Vianney', '&Abel',
|
[ '&Alphonse', '&Julien', '!Lydie', '&Jean-Marie Vianney', '&Abel',
|
||||||
'-Transfiguration', '&Gaëtan', '&Dominique', '&Amour', '&Laurent',
|
'-Transfiguration', '&Gaëtan', '&Dominique', '&Amour', '&Laurent',
|
||||||
'!Claire', '!Clarisse', '&Hippolyte', '&Evrard',
|
'!Claire', '!Clarisse', '&Hippolyte', '&Evrard',
|
||||||
'!Marie - ASSOMPTION', '&Armel', '&Hyacinthe', '!Hélène', '&Jean Eudes',
|
'!Marie - ASSOMPTION', '&Armel', '&Hyacinthe', '!Hélène', '&Jean Eudes',
|
||||||
'&Bernard', '&Christophe', '&Fabrice', '!Rose de Lima', '&Barthélémy',
|
'&Bernard', '&Christophe', '&Fabrice', '!Rose de Lima', '&Barthélémy',
|
||||||
'&Louis', '!Natacha', '!Monique', '&Augustin', '!Sabine', '&Fiacre',
|
'&Louis', '!Natacha', '!Monique', '&Augustin', '!Sabine', '&Fiacre',
|
||||||
'&Aristide' ],
|
'&Aristide' ],
|
||||||
# septembre
|
# septembre
|
||||||
[ '&Gilles', '!Ingrid', '&Grégoire', '!Rosalie', '!Raïssa', '&Bertrand',
|
[ '&Gilles', '!Ingrid', '&Grégoire', '!Rosalie', '!Raïssa', '&Bertrand',
|
||||||
'!Reine', '-Nativité de Marie', '&Alain', '!Inès', '&Adelphe',
|
'!Reine', '-Nativité de Marie', '&Alain', '!Inès', '&Adelphe',
|
||||||
'&Apollinaire', '&Aimé', '-La Ste Croix', '&Roland', '!Edith', '&Renaud',
|
'&Apollinaire', '&Aimé', '-La Ste Croix', '&Roland', '!Edith', '&Renaud',
|
||||||
'!Nadège', '!Emilie', '&Davy', '&Matthieu', '&Maurice', '&Constant',
|
'!Nadège', '!Emilie', '&Davy', '&Matthieu', '&Maurice', '&Constant',
|
||||||
'!Thècle', '&Hermann', '&Côme / Damien', '&Vincent de Paul', '&Venceslas',
|
'!Thècle', '&Hermann', '&Côme / Damien', '&Vincent de Paul', '&Venceslas',
|
||||||
'&Michel / Gabriel', '&Jérôme' ],
|
'&Michel / Gabriel', '&Jérôme' ],
|
||||||
# octobre
|
# octobre
|
||||||
[ '!Thérèse de l\'Enfant Jésus', '&Léger', '&Gérard', '&François d\'Assise',
|
[ '!Thérèse de l\'Enfant Jésus', '&Léger', '&Gérard', '&François d\'Assise',
|
||||||
'!Fleur', '&Bruno', '&Serge', '!Pélagie', '&Denis', '&Ghislain', '&Firmin',
|
'!Fleur', '&Bruno', '&Serge', '!Pélagie', '&Denis', '&Ghislain', '&Firmin',
|
||||||
'&Wilfried', '&Géraud', '&Juste', '!Thérèse d\'Avila', '!Edwige',
|
'&Wilfried', '&Géraud', '&Juste', '!Thérèse d\'Avila', '!Edwige',
|
||||||
'&Baudouin', '&Luc', '&René', '!Adeline', '!Céline', '!Elodie',
|
'&Baudouin', '&Luc', '&René', '!Adeline', '!Céline', '!Elodie',
|
||||||
'&Jean de Capistran', '&Florentin', '&Crépin', '&Dimitri', '!Emeline',
|
'&Jean de Capistran', '&Florentin', '&Crépin', '&Dimitri', '!Emeline',
|
||||||
'&Simon / Jude', '&Narcisse', '!Bienvenue', '&Quentin' ],
|
'&Simon / Jude', '&Narcisse', '!Bienvenue', '&Quentin' ],
|
||||||
# novembre
|
# novembre
|
||||||
[ '&Harold - TOUSSAINT', '-Défunts', '&Hubert', '&Charles', '!Sylvie',
|
[ '&Harold - TOUSSAINT', '-Défunts', '&Hubert', '&Charles', '!Sylvie',
|
||||||
'!Bertille', '!Carine', '&Geoffroy', '&Théodore', '&Léon',
|
'!Bertille', '!Carine', '&Geoffroy', '&Théodore', '&Léon',
|
||||||
'&Martin - ARMISTICE 1918', '&Christian', '&Brice', '&Sidoine', '&Albert',
|
'&Martin - ARMISTICE 1918', '&Christian', '&Brice', '&Sidoine', '&Albert',
|
||||||
'!Marguerite', '!Elisabeth', '!Aude', '&Tanguy', '&Edmond',
|
'!Marguerite', '!Elisabeth', '!Aude', '&Tanguy', '&Edmond',
|
||||||
'-Présentation de Marie', '!Cécile', '&Clément', '!Flora', '!Catherine',
|
'-Présentation de Marie', '!Cécile', '&Clément', '!Flora', '!Catherine',
|
||||||
'!Delphine', '&Séverin', '&Jacques de la Marche', '&Saturnin', '&André' ],
|
'!Delphine', '&Séverin', '&Jacques de la Marche', '&Saturnin', '&André' ],
|
||||||
# décembre
|
# décembre
|
||||||
[ '!Florence', '!Viviane', '&Xavier', '!Barbara', '&Gérald', '&Nicolas',
|
[ '!Florence', '!Viviane', '&Xavier', '!Barbara', '&Gérald', '&Nicolas',
|
||||||
'&Ambroise', '-Immaculée Conception', '&Pierre Fourier', '&Romaric',
|
'&Ambroise', '-Immaculée Conception', '&Pierre Fourier', '&Romaric',
|
||||||
'&Daniel', '!Jeanne de Chantal', '!Lucie', '!Odile', '!Ninon', '!Alice',
|
'&Daniel', '!Jeanne de Chantal', '!Lucie', '!Odile', '!Ninon', '!Alice',
|
||||||
'&Gaël', '&Gatien', '&Urbain', '&Abraham', '&Pierre Canisius',
|
'&Gaël', '&Gatien', '&Urbain', '&Abraham', '&Pierre Canisius',
|
||||||
'!Françoise-Xavier', '&Armand', '!Adèle', '&Emmanuel - NOEL', '&Etienne',
|
'!Françoise-Xavier', '&Armand', '!Adèle', '&Emmanuel - NOEL', '&Etienne',
|
||||||
'&Jean', '-Sts Innocents', '&David', '&Roger', '&Sylvestre' ],
|
'&Jean', '-Sts Innocents', '&David', '&Roger', '&Sylvestre' ],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -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");
|
||||||
|
}
|
||||||
@@ -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
|
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,27 +12,30 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Search for text in WeeChat disk log files.
|
# Search for text in WeeChat disk log files.
|
||||||
#
|
#
|
||||||
# History:
|
# History:
|
||||||
|
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
|
||||||
|
# version 0.2: upgraded licence to GPL 3
|
||||||
# 2006-04-17, FlashCode <flashcode@flashtux.org>:
|
# 2006-04-17, FlashCode <flashcode@flashtux.org>:
|
||||||
# initial release
|
# version 0.1: initial release
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
|
my $version = "0.2";
|
||||||
|
|
||||||
# default values in setup file (~/.weechat/plugins.rc)
|
# default values in setup file (~/.weechat/plugins.rc)
|
||||||
my $default_max = "8";
|
my $default_max = "8";
|
||||||
my $default_server = "off";
|
my $default_server = "off";
|
||||||
my $default_grep_options = "-i";
|
my $default_grep_options = "-i";
|
||||||
|
|
||||||
# init script
|
# 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("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("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 "");
|
weechat::set_plugin_config("grep_options", $default_grep_options) if (weechat::get_plugin_config("grep_options") eq "");
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,21 +12,22 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Display old topics for a channel.
|
# Display old topics for a channel.
|
||||||
#
|
#
|
||||||
# History:
|
# History:
|
||||||
|
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
|
||||||
|
# version 0.2: upgraded licence to GPL 3
|
||||||
# 2007-03-29, FlashCode <flashcode@flashtux.org>:
|
# 2007-03-29, FlashCode <flashcode@flashtux.org>:
|
||||||
# initial release
|
# version 0.1: initial release
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my $version = "0.1";
|
my $version = "0.2";
|
||||||
|
|
||||||
my $plugin_help_options = "Plugins options (set with /setp):\n"
|
my $plugin_help_options = "Plugins options (set with /setp):\n"
|
||||||
." - perl.oldtopic.log_server: if on, displays all topic changes on server buffer\n"
|
." - perl.oldtopic.log_server: if on, displays all topic changes on server buffer\n"
|
||||||
|
|||||||
@@ -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
|
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,8 +12,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -21,6 +20,8 @@
|
|||||||
#
|
#
|
||||||
# History:
|
# History:
|
||||||
#
|
#
|
||||||
|
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
|
||||||
|
# version 0.4: upgraded licence to GPL 3
|
||||||
# 2006-05-30, FlashCode <flashcode@flashtux.org>:
|
# 2006-05-30, FlashCode <flashcode@flashtux.org>:
|
||||||
# added plugin options for commands
|
# added plugin options for commands
|
||||||
# 2004-10-01, FlashCode <flashcode@flashtux.org>:
|
# 2004-10-01, FlashCode <flashcode@flashtux.org>:
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my $version = "0.3";
|
my $version = "0.4";
|
||||||
my $command_suffix = " >/dev/null 2>&1 &";
|
my $command_suffix = " >/dev/null 2>&1 &";
|
||||||
|
|
||||||
# default values in setup file (~/.weechat/plugins.rc)
|
# default values in setup file (~/.weechat/plugins.rc)
|
||||||
|
|||||||
@@ -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
|
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -12,20 +12,23 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Translate words and display result in infobar, local buffer or channel
|
# Translate words and display result in infobar, local buffer or channel
|
||||||
#
|
#
|
||||||
# History:
|
# History:
|
||||||
|
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
|
||||||
|
# version 0.2: upgraded licence to GPL 3
|
||||||
# 2006-07-03, FlashCode <flashcode@flashtux.org>:
|
# 2006-07-03, FlashCode <flashcode@flashtux.org>:
|
||||||
# initial release
|
# version 0.1: initial release
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
|
my $version = "0.2";
|
||||||
|
|
||||||
# default values in setup file (~/.weechat/plugins.rc)
|
# default values in setup file (~/.weechat/plugins.rc)
|
||||||
my $default_output_infobar = "on";
|
my $default_output_infobar = "on";
|
||||||
my $default_timeout = "2";
|
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";
|
my $languages = "de|el|en|es|fr|it|ja|ko|nl|pt|ru|zh|zt";
|
||||||
|
|
||||||
# init script
|
# 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("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 "");
|
weechat::set_plugin_config("timeout", $default_timeout) if (weechat::get_plugin_config("timeout") eq "");
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
||||||
@@ -21,7 +20,6 @@ INCLUDE(CheckIncludeFiles)
|
|||||||
INCLUDE(CheckFunctionExists)
|
INCLUDE(CheckFunctionExists)
|
||||||
|
|
||||||
CHECK_INCLUDE_FILES("arpa/inet.h" HAVE_ARPA_INET_H)
|
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("limits.h" HAVE_LIMITS_H)
|
||||||
CHECK_INCLUDE_FILES("locale.h" HAVE_LOCALE_H)
|
CHECK_INCLUDE_FILES("locale.h" HAVE_LOCALE_H)
|
||||||
CHECK_INCLUDE_FILES("netdb.h" HAVE_NETDB_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("errno.h" HAVE_ERRNO_H)
|
||||||
CHECK_INCLUDE_FILES("wchar.h" HAVE_WCHAR_H)
|
CHECK_INCLUDE_FILES("wchar.h" HAVE_WCHAR_H)
|
||||||
CHECK_INCLUDE_FILES("langinfo.h" HAVE_LANGINFO_CODESET)
|
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(gethostbyname HAVE_GETHOSTBYNAME)
|
||||||
CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
|
CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
|
||||||
@@ -82,14 +83,34 @@ IF(NOT DISABLE_GNUTLS)
|
|||||||
ENDIF(GNUTLS_FOUND)
|
ENDIF(GNUTLS_FOUND)
|
||||||
ENDIF(NOT DISABLE_GNUTLS)
|
ENDIF(NOT DISABLE_GNUTLS)
|
||||||
|
|
||||||
|
# Check for iconv
|
||||||
|
FIND_PACKAGE(Iconv)
|
||||||
|
IF(ICONV_FOUND)
|
||||||
|
ADD_DEFINITIONS( -DHAVE_ICONV )
|
||||||
|
ENDIF(ICONV_FOUND)
|
||||||
|
|
||||||
IF(NOT DISABLE_PLUGINS)
|
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)
|
ADD_DEFINITIONS(-DPLUGINS)
|
||||||
LIST(APPEND STATIC_LIBS weechat_plugins)
|
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)
|
ENDIF(NOT DISABLE_PLUGINS)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY( common )
|
ADD_SUBDIRECTORY( common )
|
||||||
List(APPEND STATIC_LIBS weechat_main)
|
List(APPEND STATIC_LIBS weechat_main)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY( irc )
|
ADD_SUBDIRECTORY( irc )
|
||||||
LIST(APPEND STATIC_LIBS weechat_irc)
|
LIST(APPEND STATIC_LIBS weechat_irc)
|
||||||
|
|
||||||
|
IF(NOT DISABLE_PLUGINS)
|
||||||
|
ADD_SUBDIRECTORY( plugins )
|
||||||
|
ENDIF(NOT DISABLE_PLUGINS)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY( gui )
|
ADD_SUBDIRECTORY( gui )
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SUBDIRS = common irc plugins gui
|
SUBDIRS = common irc plugins gui
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SET(LIB_MAIN_SRC weechat.c weechat.h alias.c alias.h backtrace.c backtrace.h
|
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_INCLUDE_FILES("sys/file.h" HAVE_SYS_FILE_H)
|
||||||
CHECK_SYMBOL_EXISTS(flock "sys/file.h" HAVE_FLOCK)
|
CHECK_SYMBOL_EXISTS(flock "sys/file.h" HAVE_FLOCK)
|
||||||
|
|
||||||
IF(ICONV_FOUND)
|
|
||||||
ADD_DEFINITIONS( -DHAVE_ICONV )
|
|
||||||
ENDIF(ICONV_FOUND)
|
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
||||||
ADD_LIBRARY(weechat_main STATIC ${LIB_MAIN_SRC})
|
ADD_LIBRARY(weechat_main STATIC ${LIB_MAIN_SRC})
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GNUTLS_CFLAGS)
|
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GNUTLS_CFLAGS)
|
||||||
|
|||||||
+3
-4
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* alias.c: WeeChat alias */
|
/* alias.c: WeeChat alias */
|
||||||
@@ -165,7 +164,7 @@ alias_get_final_command (t_weechat_alias *alias)
|
|||||||
|
|
||||||
if (alias->running)
|
if (alias->running)
|
||||||
{
|
{
|
||||||
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
|
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
|
||||||
gui_printf (NULL,
|
gui_printf (NULL,
|
||||||
_("%s circular reference when calling alias \"/%s\"\n"),
|
_("%s circular reference when calling alias \"/%s\"\n"),
|
||||||
WEECHAT_ERROR, alias->alias_name);
|
WEECHAT_ERROR, alias->alias_name);
|
||||||
|
|||||||
+2
-3
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* backtrace.c: display backtrace after a segfault */
|
/* backtrace.c: display backtrace after a segfault */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1015
-638
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+42
-24
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* completion.c: completes words according to context (cmd/nick) */
|
/* 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)
|
ptr_channel = ptr_channel->next_channel)
|
||||||
{
|
{
|
||||||
if ((!completion->channel || (t_irc_channel *)(completion->channel) != ptr_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;
|
for (ptr_nick = ptr_channel->nicks; ptr_nick;
|
||||||
ptr_nick = ptr_nick->next_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 */
|
/* 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;
|
for (ptr_nick = ((t_irc_channel *)(completion->channel))->nicks;
|
||||||
ptr_nick; ptr_nick = ptr_nick->next_nick)
|
ptr_nick; ptr_nick = ptr_nick->next_nick)
|
||||||
@@ -617,7 +616,7 @@ completion_list_add_channel_nicks (t_completion *completion)
|
|||||||
|
|
||||||
if (completion->channel)
|
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 */
|
/* add channel nicks */
|
||||||
for (ptr_nick = ((t_irc_channel *)(completion->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,
|
((t_irc_server *)(completion->server))->nick,
|
||||||
1, WEELIST_POS_END);
|
1, WEELIST_POS_END);
|
||||||
}
|
}
|
||||||
if ((((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 == CHANNEL_TYPE_DCC_CHAT))
|
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_DCC_CHAT))
|
||||||
{
|
{
|
||||||
completion_list_add (completion,
|
completion_list_add (completion,
|
||||||
((t_irc_channel *)(completion->channel))->name,
|
((t_irc_channel *)(completion->channel))->name,
|
||||||
@@ -670,7 +669,7 @@ completion_list_add_channel_nicks_hosts (t_completion *completion)
|
|||||||
|
|
||||||
if (completion->channel)
|
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;
|
for (ptr_nick = ((t_irc_channel *)(completion->channel))->nicks;
|
||||||
ptr_nick; ptr_nick = ptr_nick->next_nick)
|
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)
|
if ((((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE)
|
||||||
|| (((t_irc_channel *)(completion->channel))->type == CHANNEL_TYPE_PRIVATE))
|
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_PRIVATE))
|
||||||
{
|
{
|
||||||
completion_list_add (completion,
|
completion_list_add (completion,
|
||||||
((t_irc_channel *)(completion->channel))->name,
|
((t_irc_channel *)(completion->channel))->name,
|
||||||
@@ -854,7 +853,7 @@ completion_list_add_topic (t_completion *completion)
|
|||||||
if (cfg_irc_colors_send)
|
if (cfg_irc_colors_send)
|
||||||
string = (char *)gui_color_decode_for_user_entry ((unsigned char *)((t_irc_channel *)(completion->channel))->topic);
|
string = (char *)gui_color_decode_for_user_entry ((unsigned char *)((t_irc_channel *)(completion->channel))->topic);
|
||||||
else
|
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,
|
completion_list_add (completion,
|
||||||
(string) ?
|
(string) ?
|
||||||
string : ((t_irc_channel *)(completion->channel))->topic,
|
string : ((t_irc_channel *)(completion->channel))->topic,
|
||||||
@@ -1020,6 +1019,8 @@ completion_build_list_template (t_completion *completion, char *template)
|
|||||||
free (word);
|
free (word);
|
||||||
return;
|
return;
|
||||||
break;
|
break;
|
||||||
|
case '*': /* repeat last completion (do nothing there) */
|
||||||
|
break;
|
||||||
case 'a': /* alias */
|
case 'a': /* alias */
|
||||||
completion_list_add_alias (completion);
|
completion_list_add_alias (completion);
|
||||||
break;
|
break;
|
||||||
@@ -1115,8 +1116,10 @@ completion_build_list_template (t_completion *completion, char *template)
|
|||||||
void
|
void
|
||||||
completion_build_list (t_completion *completion)
|
completion_build_list (t_completion *completion)
|
||||||
{
|
{
|
||||||
char *template, *pos_space;
|
char *template, *pos_template, *pos_space;
|
||||||
int max_arg, i;
|
int repeat_last, max_arg, i, length;
|
||||||
|
|
||||||
|
repeat_last = 0;
|
||||||
|
|
||||||
completion_get_command_infos (completion, &template, &max_arg);
|
completion_get_command_infos (completion, &template, &max_arg);
|
||||||
if (!template || (strcmp (template, "-") == 0) ||
|
if (!template || (strcmp (template, "-") == 0) ||
|
||||||
@@ -1125,25 +1128,40 @@ completion_build_list (t_completion *completion)
|
|||||||
completion_stop (completion);
|
completion_stop (completion);
|
||||||
return;
|
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)
|
if (i == completion->base_command_arg)
|
||||||
{
|
{
|
||||||
completion_build_list_template (completion, template);
|
completion_build_list_template (completion, pos_template);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (pos_space)
|
if (pos_space)
|
||||||
{
|
{
|
||||||
template = pos_space;
|
pos_template = pos_space;
|
||||||
while (template[0] == ' ')
|
while (pos_template[0] == ' ')
|
||||||
template++;
|
pos_template++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
template = NULL;
|
pos_template = NULL;
|
||||||
i++;
|
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;
|
completion->context = COMPLETION_NICK;
|
||||||
|
|
||||||
if ((((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 == CHANNEL_TYPE_DCC_CHAT))
|
|| (((t_irc_channel *)(completion->channel))->type == IRC_CHANNEL_TYPE_DCC_CHAT))
|
||||||
{
|
{
|
||||||
if (!(completion->completion_list))
|
if (!(completion->completion_list))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+8
-9
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* fifo.c: FIFO pipe for WeeChat remote control */
|
/* fifo.c: FIFO pipe for WeeChat remote control */
|
||||||
@@ -114,12 +113,12 @@ fifo_exec (char *text)
|
|||||||
pos_msg = text + 1;
|
pos_msg = text + 1;
|
||||||
if (gui_current_window->buffer->has_input)
|
if (gui_current_window->buffer->has_input)
|
||||||
{
|
{
|
||||||
ptr_server = SERVER(gui_current_window->buffer);
|
ptr_server = GUI_SERVER(gui_current_window->buffer);
|
||||||
ptr_channel = CHANNEL(gui_current_window->buffer);
|
ptr_channel = GUI_CHANNEL(gui_current_window->buffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ptr_server = SERVER(gui_buffers);
|
ptr_server = GUI_SERVER(gui_buffers);
|
||||||
ptr_channel = NULL;
|
ptr_channel = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -128,7 +127,7 @@ fifo_exec (char *text)
|
|||||||
pos_msg = strstr (text, " *");
|
pos_msg = strstr (text, " *");
|
||||||
if (!pos_msg)
|
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"),
|
gui_printf (NULL, _("%s invalid text received on FIFO pipe\n"),
|
||||||
WEECHAT_WARNING);
|
WEECHAT_WARNING);
|
||||||
return;
|
return;
|
||||||
@@ -150,7 +149,7 @@ fifo_exec (char *text)
|
|||||||
ptr_server = irc_server_search (text);
|
ptr_server = irc_server_search (text);
|
||||||
if (!ptr_server || !ptr_server->buffer)
|
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"),
|
gui_printf (NULL, _("%s server \"%s\" not found (FIFO pipe data)\n"),
|
||||||
WEECHAT_WARNING, text);
|
WEECHAT_WARNING, text);
|
||||||
return;
|
return;
|
||||||
@@ -160,7 +159,7 @@ fifo_exec (char *text)
|
|||||||
ptr_channel = irc_channel_search_any (ptr_server, pos + 1);
|
ptr_channel = irc_channel_search_any (ptr_server, pos + 1);
|
||||||
if (!ptr_channel)
|
if (!ptr_channel)
|
||||||
{
|
{
|
||||||
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
|
irc_display_prefix (NULL, NULL, GUI_PREFIX_ERROR);
|
||||||
gui_printf (NULL,
|
gui_printf (NULL,
|
||||||
_("%s channel \"%s\" not found (FIFO pipe data)\n"),
|
_("%s channel \"%s\" not found (FIFO pipe data)\n"),
|
||||||
WEECHAT_WARNING, pos + 1);
|
WEECHAT_WARNING, pos + 1);
|
||||||
|
|||||||
+2
-3
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* history.c: memorize commands or text */
|
/* history.c: memorize commands or text */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+207
-52
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* hotlist.c: WeeChat hotlist (buffers with activity) */
|
/* hotlist.c: WeeChat hotlist (buffers with activity) */
|
||||||
@@ -25,15 +24,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "weechat.h"
|
#include "weechat.h"
|
||||||
#include "hotlist.h"
|
#include "hotlist.h"
|
||||||
|
#include "log.h"
|
||||||
|
#include "util.h"
|
||||||
|
#include "weeconfig.h"
|
||||||
#include "../irc/irc.h"
|
#include "../irc/irc.h"
|
||||||
#include "../gui/gui.h"
|
#include "../gui/gui.h"
|
||||||
|
|
||||||
|
|
||||||
t_weechat_hotlist *hotlist = NULL;
|
t_weechat_hotlist *weechat_hotlist = NULL;
|
||||||
t_weechat_hotlist *last_hotlist = NULL;
|
t_weechat_hotlist *last_weechat_hotlist = NULL;
|
||||||
t_gui_buffer *hotlist_initial_buffer = NULL;
|
t_gui_buffer *hotlist_initial_buffer = NULL;
|
||||||
|
|
||||||
|
|
||||||
@@ -42,7 +45,7 @@ t_gui_buffer *hotlist_initial_buffer = NULL;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
t_weechat_hotlist *
|
t_weechat_hotlist *
|
||||||
hotlist_search (t_gui_buffer *buffer)
|
hotlist_search (t_weechat_hotlist *hotlist, t_gui_buffer *buffer)
|
||||||
{
|
{
|
||||||
t_weechat_hotlist *ptr_hotlist;
|
t_weechat_hotlist *ptr_hotlist;
|
||||||
|
|
||||||
@@ -59,27 +62,128 @@ hotlist_search (t_gui_buffer *buffer)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
t_weechat_hotlist *
|
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;
|
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)
|
case CFG_LOOK_HOTLIST_SORT_GROUP_TIME_ASC:
|
||||||
return ptr_hotlist;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* hotlist_add: add a buffer to hotlist, with priority
|
* hotlist_add_hotlist: add new hotlist in list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
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)
|
int allow_current_buffer)
|
||||||
{
|
{
|
||||||
t_weechat_hotlist *new_hotlist, *pos_hotlist;
|
t_weechat_hotlist *new_hotlist, *ptr_hotlist;
|
||||||
|
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return;
|
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)))
|
&& (!allow_current_buffer) && (!gui_buffer_is_scrolled (buffer)))
|
||||||
return;
|
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 */
|
/* return if priority is greater or equal than the one to add */
|
||||||
if (pos_hotlist->priority >= priority)
|
if (ptr_hotlist->priority >= priority)
|
||||||
return;
|
return;
|
||||||
/* remove buffer if present with lower priority and go on */
|
/* 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)
|
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;
|
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->server = server;
|
||||||
new_hotlist->buffer = buffer;
|
new_hotlist->buffer = buffer;
|
||||||
|
new_hotlist->next_hotlist = NULL;
|
||||||
|
new_hotlist->prev_hotlist = NULL;
|
||||||
|
|
||||||
if (hotlist)
|
hotlist_add_hotlist (&weechat_hotlist, &last_weechat_hotlist, new_hotlist);
|
||||||
{
|
}
|
||||||
pos_hotlist = hotlist_find_pos (new_hotlist);
|
|
||||||
|
|
||||||
if (pos_hotlist)
|
/*
|
||||||
{
|
* hotlist_dup: duplicate hotlist element
|
||||||
/* insert hotlist into the hotlist (before hotlist found) */
|
*/
|
||||||
new_hotlist->prev_hotlist = pos_hotlist->prev_hotlist;
|
|
||||||
new_hotlist->next_hotlist = pos_hotlist;
|
t_weechat_hotlist *
|
||||||
if (pos_hotlist->prev_hotlist)
|
hotlist_dup (t_weechat_hotlist *hotlist)
|
||||||
pos_hotlist->prev_hotlist->next_hotlist = new_hotlist;
|
{
|
||||||
else
|
t_weechat_hotlist *new_hotlist;
|
||||||
hotlist = new_hotlist;
|
|
||||||
pos_hotlist->prev_hotlist = new_hotlist;
|
if ((new_hotlist = (t_weechat_hotlist *) malloc (sizeof (t_weechat_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->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->prev_hotlist = NULL;
|
||||||
new_hotlist->next_hotlist = NULL;
|
new_hotlist->next_hotlist = NULL;
|
||||||
hotlist = new_hotlist;
|
return new_hotlist;
|
||||||
last_hotlist = 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
|
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;
|
t_weechat_hotlist *new_hotlist;
|
||||||
|
|
||||||
/* remove hotlist from queue */
|
/* remove hotlist from queue */
|
||||||
if (last_hotlist == ptr_hotlist)
|
if (*last_hotlist == ptr_hotlist)
|
||||||
last_hotlist = ptr_hotlist->prev_hotlist;
|
*last_hotlist = ptr_hotlist->prev_hotlist;
|
||||||
if (ptr_hotlist->prev_hotlist)
|
if (ptr_hotlist->prev_hotlist)
|
||||||
{
|
{
|
||||||
(ptr_hotlist->prev_hotlist)->next_hotlist = ptr_hotlist->next_hotlist;
|
(ptr_hotlist->prev_hotlist)->next_hotlist = ptr_hotlist->next_hotlist;
|
||||||
new_hotlist = hotlist;
|
new_hotlist = *hotlist;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
new_hotlist = ptr_hotlist->next_hotlist;
|
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;
|
(ptr_hotlist->next_hotlist)->prev_hotlist = ptr_hotlist->prev_hotlist;
|
||||||
|
|
||||||
free (ptr_hotlist);
|
free (ptr_hotlist);
|
||||||
hotlist = new_hotlist;
|
*hotlist = new_hotlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -174,11 +305,11 @@ hotlist_free (t_weechat_hotlist *ptr_hotlist)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
hotlist_free_all ()
|
hotlist_free_all (t_weechat_hotlist **hotlist, t_weechat_hotlist **last_hotlist)
|
||||||
{
|
{
|
||||||
/* remove all hotlists */
|
/* remove all hotlists */
|
||||||
while (hotlist)
|
while (*hotlist)
|
||||||
hotlist_free (hotlist);
|
hotlist_free (hotlist, last_hotlist, *hotlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -190,7 +321,31 @@ hotlist_remove_buffer (t_gui_buffer *buffer)
|
|||||||
{
|
{
|
||||||
t_weechat_hotlist *pos_hotlist;
|
t_weechat_hotlist *pos_hotlist;
|
||||||
|
|
||||||
pos_hotlist = hotlist_search (buffer);
|
pos_hotlist = hotlist_search (weechat_hotlist, buffer);
|
||||||
if (pos_hotlist)
|
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
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -34,18 +33,22 @@ struct t_weechat_hotlist
|
|||||||
{
|
{
|
||||||
int priority; /* 0=crappy msg (join/part), 1=msg, */
|
int priority; /* 0=crappy msg (join/part), 1=msg, */
|
||||||
/* 2=pv, 3=nick highlight */
|
/* 2=pv, 3=nick highlight */
|
||||||
|
struct timeval creation_time; /* time when entry was added */
|
||||||
t_irc_server *server; /* associated server */
|
t_irc_server *server; /* associated server */
|
||||||
t_gui_buffer *buffer; /* associated buffer */
|
t_gui_buffer *buffer; /* associated buffer */
|
||||||
t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
|
t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
|
||||||
t_weechat_hotlist *next_hotlist; /* link to next 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 t_gui_buffer *hotlist_initial_buffer;
|
||||||
|
|
||||||
extern void hotlist_add (int, t_irc_server *, t_gui_buffer *, int);
|
extern void hotlist_add (int, struct timeval *, t_irc_server *, t_gui_buffer *, int);
|
||||||
extern void hotlist_free (t_weechat_hotlist *);
|
extern void hotlist_resort ();
|
||||||
extern void hotlist_free_all ();
|
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_remove_buffer (t_gui_buffer *);
|
||||||
|
extern void hotlist_print_log ();
|
||||||
|
|
||||||
#endif /* hotlist.h */
|
#endif /* hotlist.h */
|
||||||
|
|||||||
+11
-8
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* log.c: WeeChat log file */
|
/* log.c: WeeChat log file */
|
||||||
@@ -28,6 +27,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef HAVE_FLOCK
|
#ifdef HAVE_FLOCK
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
@@ -80,11 +80,14 @@ weechat_log_open (char *filename, char *mode)
|
|||||||
#ifdef HAVE_FLOCK
|
#ifdef HAVE_FLOCK
|
||||||
if ((flock (fileno (weechat_log_file), LOCK_EX | LOCK_NB) != 0))
|
if ((flock (fileno (weechat_log_file), LOCK_EX | LOCK_NB) != 0))
|
||||||
{
|
{
|
||||||
fclose (weechat_log_file);
|
if (errno == EWOULDBLOCK)
|
||||||
weechat_log_file = NULL;
|
{
|
||||||
free (weechat_log_filename);
|
fclose (weechat_log_file);
|
||||||
weechat_log_filename = NULL;
|
weechat_log_file = NULL;
|
||||||
return 0;
|
free (weechat_log_filename);
|
||||||
|
weechat_log_filename = NULL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+24
-14
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* session.c: save/restore session data */
|
/* 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_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, 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_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_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_PORT, ptr_server->port));
|
||||||
rc = rc && (session_write_int (file, SESSION_SERV_IPV6, ptr_server->ipv6));
|
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_NICK_MODES, ptr_server->nick_modes));
|
||||||
rc = rc && (session_write_str (file, SESSION_SERV_PREFIX, ptr_server->prefix));
|
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_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_RECONNECT_JOIN, ptr_server->reconnect_join));
|
||||||
rc = rc && (session_write_int (file, SESSION_SERV_IS_AWAY, ptr_server->is_away));
|
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));
|
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;
|
rc = 1;
|
||||||
|
|
||||||
for (ptr_dcc = last_dcc; ptr_dcc;
|
for (ptr_dcc = irc_last_dcc; ptr_dcc;
|
||||||
ptr_dcc = ptr_dcc->prev_dcc)
|
ptr_dcc = ptr_dcc->prev_dcc)
|
||||||
{
|
{
|
||||||
rc = rc && (session_write_id (file, SESSION_OBJ_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)
|
ptr_buffer = ptr_buffer->next_buffer)
|
||||||
{
|
{
|
||||||
rc = rc && (session_write_id (file, SESSION_OBJ_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_SERVER, GUI_SERVER(ptr_buffer) ? GUI_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_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_TYPE, ptr_buffer->type));
|
||||||
rc = rc && (session_write_int (file, SESSION_BUFF_ALL_SERVERS, ptr_buffer->all_servers));
|
rc = rc && (session_write_int (file, SESSION_BUFF_ALL_SERVERS, ptr_buffer->all_servers));
|
||||||
rc = rc && (session_write_id (file, SESSION_BUFF_END));
|
rc = rc && (session_write_id (file, SESSION_BUFF_END));
|
||||||
@@ -450,13 +450,14 @@ session_save_hotlist (FILE *file)
|
|||||||
|
|
||||||
rc = 1;
|
rc = 1;
|
||||||
|
|
||||||
for (ptr_hotlist = hotlist; ptr_hotlist;
|
for (ptr_hotlist = weechat_hotlist; ptr_hotlist;
|
||||||
ptr_hotlist = ptr_hotlist->next_hotlist)
|
ptr_hotlist = ptr_hotlist->next_hotlist)
|
||||||
{
|
{
|
||||||
rc = rc && (session_write_id (file, SESSION_OBJ_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_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_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_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));
|
rc = rc && (session_write_id (file, SESSION_HOTL_END));
|
||||||
|
|
||||||
if (!rc)
|
if (!rc)
|
||||||
@@ -881,8 +882,8 @@ session_load_server (FILE *file)
|
|||||||
case SESSION_SERV_AUTORECONNECT_DELAY:
|
case SESSION_SERV_AUTORECONNECT_DELAY:
|
||||||
rc = rc && (session_read_int (file, &(session_current_server->autoreconnect_delay)));
|
rc = rc && (session_read_int (file, &(session_current_server->autoreconnect_delay)));
|
||||||
break;
|
break;
|
||||||
case SESSION_SERV_COMMAND_LINE:
|
case SESSION_SERV_TEMP_SERVER:
|
||||||
rc = rc && (session_read_int (file, &(session_current_server->command_line)));
|
rc = rc && (session_read_int (file, &(session_current_server->temp_server)));
|
||||||
break;
|
break;
|
||||||
case SESSION_SERV_ADDRESS:
|
case SESSION_SERV_ADDRESS:
|
||||||
rc = rc && (session_read_str (file, &(session_current_server->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:
|
case SESSION_SERV_RECONNECT_START:
|
||||||
rc = rc && (session_read_buf (file, &(session_current_server->reconnect_start), sizeof (time_t)));
|
rc = rc && (session_read_buf (file, &(session_current_server->reconnect_start), sizeof (time_t)));
|
||||||
break;
|
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:
|
case SESSION_SERV_RECONNECT_JOIN:
|
||||||
rc = rc && (session_read_int (file, &(session_current_server->reconnect_join)));
|
rc = rc && (session_read_int (file, &(session_current_server->reconnect_join)));
|
||||||
break;
|
break;
|
||||||
@@ -1165,7 +1169,7 @@ session_load_nick (FILE *file)
|
|||||||
|
|
||||||
/* allocate nick */
|
/* allocate nick */
|
||||||
nick = irc_nick_new (session_current_server, session_current_channel,
|
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);
|
free (nick_name);
|
||||||
if (!nick)
|
if (!nick)
|
||||||
{
|
{
|
||||||
@@ -1654,12 +1658,15 @@ session_load_hotlist (FILE *file)
|
|||||||
{
|
{
|
||||||
int object_id, rc;
|
int object_id, rc;
|
||||||
int priority;
|
int priority;
|
||||||
|
struct timeval creation_time;
|
||||||
char *server_name;
|
char *server_name;
|
||||||
t_irc_server *ptr_server;
|
t_irc_server *ptr_server;
|
||||||
int buffer_number;
|
int buffer_number;
|
||||||
t_gui_buffer *ptr_buffer;
|
t_gui_buffer *ptr_buffer;
|
||||||
|
|
||||||
priority = 0;
|
priority = 0;
|
||||||
|
creation_time.tv_sec = 0;
|
||||||
|
creation_time.tv_usec = 0;
|
||||||
ptr_server = NULL;
|
ptr_server = NULL;
|
||||||
ptr_buffer = NULL;
|
ptr_buffer = NULL;
|
||||||
|
|
||||||
@@ -1677,7 +1684,7 @@ session_load_hotlist (FILE *file)
|
|||||||
switch (object_id)
|
switch (object_id)
|
||||||
{
|
{
|
||||||
case SESSION_HOTL_END:
|
case SESSION_HOTL_END:
|
||||||
hotlist_add (priority, ptr_server, ptr_buffer, 1);
|
hotlist_add (priority, &creation_time, ptr_server, ptr_buffer, 1);
|
||||||
return 1;
|
return 1;
|
||||||
case SESSION_HOTL_PRIORITY:
|
case SESSION_HOTL_PRIORITY:
|
||||||
rc = rc && (session_read_int (file, &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));
|
rc = rc && (session_read_int (file, &buffer_number));
|
||||||
ptr_buffer = gui_buffer_search_by_number (buffer_number);
|
ptr_buffer = gui_buffer_search_by_number (buffer_number);
|
||||||
break;
|
break;
|
||||||
|
case SESSION_HOTL_CREATION_TIME:
|
||||||
|
rc = rc && (session_read_buf (file, &creation_time, sizeof (struct timeval)));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
weechat_log_printf (_("session: warning: ignoring value from "
|
weechat_log_printf (_("session: warning: ignoring value from "
|
||||||
"history (object id: %d)\n"),
|
"history (object id: %d)\n"),
|
||||||
@@ -1843,13 +1853,13 @@ session_load (char *filename)
|
|||||||
|
|
||||||
if (unlink (filename) < 0)
|
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,
|
gui_printf_nolog (gui_current_window->buffer,
|
||||||
_("%s can't delete session file (%s)\n"),
|
_("%s can't delete session file (%s)\n"),
|
||||||
WEECHAT_ERROR, filename);
|
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,
|
gui_printf_nolog (gui_current_window->buffer,
|
||||||
_("Upgrade completed successfully\n"));
|
_("Upgrade completed successfully\n"));
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -55,7 +54,7 @@ enum t_session_server
|
|||||||
SESSION_SERV_AUTOCONNECT,
|
SESSION_SERV_AUTOCONNECT,
|
||||||
SESSION_SERV_AUTORECONNECT,
|
SESSION_SERV_AUTORECONNECT,
|
||||||
SESSION_SERV_AUTORECONNECT_DELAY,
|
SESSION_SERV_AUTORECONNECT_DELAY,
|
||||||
SESSION_SERV_COMMAND_LINE,
|
SESSION_SERV_TEMP_SERVER,
|
||||||
SESSION_SERV_ADDRESS,
|
SESSION_SERV_ADDRESS,
|
||||||
SESSION_SERV_PORT,
|
SESSION_SERV_PORT,
|
||||||
SESSION_SERV_IPV6,
|
SESSION_SERV_IPV6,
|
||||||
@@ -93,7 +92,8 @@ enum t_session_server
|
|||||||
SESSION_SERV_HOSTNAME,
|
SESSION_SERV_HOSTNAME,
|
||||||
SESSION_SERV_NICK_MODES,
|
SESSION_SERV_NICK_MODES,
|
||||||
SESSION_SERV_AWAY_MESSAGE,
|
SESSION_SERV_AWAY_MESSAGE,
|
||||||
SESSION_SERV_PREFIX
|
SESSION_SERV_PREFIX,
|
||||||
|
SESSION_SERV_COMMAND_TIME
|
||||||
};
|
};
|
||||||
|
|
||||||
enum t_session_channel
|
enum t_session_channel
|
||||||
@@ -195,7 +195,8 @@ enum t_session_hotlist
|
|||||||
SESSION_HOTL_END = 0,
|
SESSION_HOTL_END = 0,
|
||||||
SESSION_HOTL_PRIORITY,
|
SESSION_HOTL_PRIORITY,
|
||||||
SESSION_HOTL_SERVER,
|
SESSION_HOTL_SERVER,
|
||||||
SESSION_HOTL_BUFFER_NUMBER
|
SESSION_HOTL_BUFFER_NUMBER,
|
||||||
|
SESSION_HOTL_CREATION_TIME
|
||||||
};
|
};
|
||||||
|
|
||||||
int session_save (char *filename);
|
int session_save (char *filename);
|
||||||
|
|||||||
+42
-13
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* utf8.c: UTF-8 string functions for WeeChat */
|
/* utf8.c: UTF-8 string functions for WeeChat */
|
||||||
@@ -27,16 +26,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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 "weechat.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@@ -395,3 +384,43 @@ utf8_pos (char *string, int real_pos)
|
|||||||
}
|
}
|
||||||
return count;
|
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
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,14 +13,23 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __WEECHAT_UTF8_H
|
#ifndef __WEECHAT_UTF8_H
|
||||||
#define __WEECHAT_UTF8_H 1
|
#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 int local_utf8;
|
||||||
|
|
||||||
extern void utf8_init ();
|
extern void utf8_init ();
|
||||||
@@ -36,5 +45,6 @@ extern int utf8_width_screen (char *);
|
|||||||
extern char *utf8_add_offset (char *, int);
|
extern char *utf8_add_offset (char *, int);
|
||||||
extern int utf8_real_pos (char *, int);
|
extern int utf8_real_pos (char *, int);
|
||||||
extern int utf8_pos (char *, int);
|
extern int utf8_pos (char *, int);
|
||||||
|
extern wint_t utf8_get_wc (char *);
|
||||||
|
|
||||||
#endif /* utf8.h */
|
#endif /* utf8.h */
|
||||||
|
|||||||
+75
-3
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* util.c: some useful functions for WeeChat */
|
/* util.c: some useful functions for WeeChat */
|
||||||
@@ -28,6 +27,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef HAVE_ICONV
|
#ifdef HAVE_ICONV
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
@@ -292,6 +292,7 @@ weechat_iconv (int from_utf8, char *from_code, char *to_code, char *string)
|
|||||||
outbuf = strdup (string);
|
outbuf = strdup (string);
|
||||||
#else
|
#else
|
||||||
/* make C compiler happy */
|
/* make C compiler happy */
|
||||||
|
(void) from_utf8;
|
||||||
(void) from_code;
|
(void) from_code;
|
||||||
(void) to_code;
|
(void) to_code;
|
||||||
outbuf = strdup (string);
|
outbuf = strdup (string);
|
||||||
@@ -442,6 +443,77 @@ weechat_strreplace (char *string, char *search, char *replace)
|
|||||||
return new_string;
|
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)
|
* get_timeval_diff: calculates difference between two times (return in milliseconds)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -34,6 +33,7 @@ extern char *weechat_iconv_to_internal (char *, char *);
|
|||||||
extern char *weechat_iconv_from_internal (char *, char *);
|
extern char *weechat_iconv_from_internal (char *, char *);
|
||||||
extern void weechat_iconv_fprintf (FILE *, char *, ...);
|
extern void weechat_iconv_fprintf (FILE *, char *, ...);
|
||||||
extern char *weechat_strreplace (char *, char *, 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 long get_timeval_diff (struct timeval *, struct timeval *);
|
||||||
extern char **explode_string (char *, char *, int, int *);
|
extern char **explode_string (char *, char *, int, int *);
|
||||||
extern void free_exploded_string (char **);
|
extern void free_exploded_string (char **);
|
||||||
|
|||||||
+45
-19
@@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -28,8 +28,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* weechat.c: core functions for WeeChat */
|
/* weechat.c: core functions for WeeChat */
|
||||||
@@ -60,6 +59,7 @@
|
|||||||
#include "backtrace.h"
|
#include "backtrace.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
|
#include "hotlist.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
@@ -187,8 +187,22 @@ weechat_display_config_options ()
|
|||||||
weechat_options[i][j].default_string : _("empty"));
|
weechat_options[i][j].default_string : _("empty"));
|
||||||
break;
|
break;
|
||||||
case OPTION_TYPE_STRING:
|
case OPTION_TYPE_STRING:
|
||||||
weechat_iconv_fprintf (stdout, _(" . type: string\n"));
|
switch (weechat_options[i][j].max)
|
||||||
weechat_iconv_fprintf (stdout, _(" . values: any string\n"));
|
{
|
||||||
|
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_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||||
(weechat_options[i][j].default_string) ?
|
(weechat_options[i][j].default_string) ?
|
||||||
weechat_options[i][j].default_string : _("empty"));
|
weechat_options[i][j].default_string : _("empty"));
|
||||||
@@ -554,10 +568,6 @@ weechat_init_vars ()
|
|||||||
/* start time, used by /uptime command */
|
/* start time, used by /uptime command */
|
||||||
weechat_start_time = time (NULL);
|
weechat_start_time = time (NULL);
|
||||||
|
|
||||||
/* init received messages queue */
|
|
||||||
recv_msgq = NULL;
|
|
||||||
msgq_last_msg = NULL;
|
|
||||||
|
|
||||||
/* init gnutls */
|
/* init gnutls */
|
||||||
#ifdef HAVE_GNUTLS
|
#ifdef HAVE_GNUTLS
|
||||||
gnutls_global_init ();
|
gnutls_global_init ();
|
||||||
@@ -604,17 +614,17 @@ weechat_welcome_message ()
|
|||||||
"%s __ | /| / /_ _ \\ _ \\ / __ __ \\ __ `/ __/\n"
|
"%s __ | /| / /_ _ \\ _ \\ / __ __ \\ __ `/ __/\n"
|
||||||
"%s __ |/ |/ / / __/ __/ /___ _ / / / /_/ // /_ \n"
|
"%s __ |/ |/ / / __/ __/ /___ _ / / / /_/ // /_ \n"
|
||||||
"%s ____/|__/ \\___/\\___/\\____/ /_/ /_/\\__,_/ \\__/ \n",
|
"%s ____/|__/ \\___/\\___/\\____/ /_/ /_/\\__,_/ \\__/ \n",
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK),
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK));
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK));
|
||||||
}
|
}
|
||||||
if (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0])
|
if (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0])
|
||||||
{
|
{
|
||||||
gui_printf (NULL, _("%sWelcome to %s%s%s, %s\n"),
|
gui_printf (NULL, _("%sWelcome to %s%s%s, %s\n"),
|
||||||
(cfg_look_startup_logo) ? " " : "",
|
(cfg_look_startup_logo) ? " " : "",
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_CHANNEL),
|
||||||
PACKAGE_NAME,
|
PACKAGE_NAME,
|
||||||
GUI_NO_COLOR,
|
GUI_NO_COLOR,
|
||||||
cfg_look_weechat_slogan);
|
cfg_look_weechat_slogan);
|
||||||
@@ -623,7 +633,7 @@ weechat_welcome_message ()
|
|||||||
{
|
{
|
||||||
gui_printf (NULL, "%s%s%s%s, %s %s %s\n",
|
gui_printf (NULL, "%s%s%s%s, %s %s %s\n",
|
||||||
(cfg_look_startup_logo) ? " " : "",
|
(cfg_look_startup_logo) ? " " : "",
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_CHANNEL),
|
||||||
PACKAGE_STRING,
|
PACKAGE_STRING,
|
||||||
GUI_NO_COLOR,
|
GUI_NO_COLOR,
|
||||||
_("compiled on"), __DATE__, __TIME__);
|
_("compiled on"), __DATE__, __TIME__);
|
||||||
@@ -633,7 +643,7 @@ weechat_welcome_message ()
|
|||||||
cfg_look_startup_version)
|
cfg_look_startup_version)
|
||||||
gui_printf (NULL,
|
gui_printf (NULL,
|
||||||
"%s-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n",
|
"%s-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n",
|
||||||
GUI_COLOR(COLOR_WIN_CHAT_NICK));
|
GUI_COLOR(GUI_COLOR_WIN_CHAT_NICK));
|
||||||
|
|
||||||
weechat_log_printf ("%s (%s %s %s)\n",
|
weechat_log_printf ("%s (%s %s %s)\n",
|
||||||
PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
|
PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
|
||||||
@@ -679,6 +689,9 @@ weechat_dump (int crash)
|
|||||||
t_irc_nick *ptr_nick;
|
t_irc_nick *ptr_nick;
|
||||||
t_gui_window *ptr_window;
|
t_gui_window *ptr_window;
|
||||||
t_gui_buffer *ptr_buffer;
|
t_gui_buffer *ptr_buffer;
|
||||||
|
#ifdef PLUGINS
|
||||||
|
t_weechat_plugin *ptr_plugin;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* prevent reentrance */
|
/* prevent reentrance */
|
||||||
if (sigsegv)
|
if (sigsegv)
|
||||||
@@ -747,7 +760,8 @@ weechat_dump (int crash)
|
|||||||
gui_window_print_log (ptr_window);
|
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");
|
weechat_log_printf ("\n");
|
||||||
gui_buffer_print_log (ptr_buffer);
|
gui_buffer_print_log (ptr_buffer);
|
||||||
@@ -756,6 +770,18 @@ weechat_dump (int crash)
|
|||||||
weechat_log_printf ("\n");
|
weechat_log_printf ("\n");
|
||||||
irc_ignore_print_log ();
|
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 ("\n");
|
||||||
weechat_log_printf ("****** End of dump ******\n");
|
weechat_log_printf ("****** End of dump ******\n");
|
||||||
weechat_log_printf ("\n");
|
weechat_log_printf ("\n");
|
||||||
@@ -801,8 +827,8 @@ weechat_sigsegv ()
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
setlocale (LC_ALL, ""); /* initialize gettext */
|
setlocale (LC_ALL, ""); /* initialize gettext */
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
bind_textdomain_codeset (PACKAGE, "UTF-8");
|
bind_textdomain_codeset (PACKAGE, "UTF-8");
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|||||||
+11
-10
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -32,22 +31,25 @@
|
|||||||
#include <gnutls/gnutls.h>
|
#include <gnutls/gnutls.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#if defined(ENABLE_NLS) && !defined(_)
|
#if defined(ENABLE_NLS) && !defined(_)
|
||||||
#include <locale.h>
|
|
||||||
#ifdef HAVE_LIBINTL_H
|
#ifdef HAVE_LIBINTL_H
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#else
|
#else
|
||||||
#include "../../intl/libintl.h"
|
#include "../../intl/libintl.h"
|
||||||
#endif
|
#endif
|
||||||
#define _(x) gettext(x)
|
#define _(string) gettext(string)
|
||||||
|
#define NG_(single,plural,number) ngettext(single,plural,number)
|
||||||
#ifdef gettext_noop
|
#ifdef gettext_noop
|
||||||
#define N_(string) gettext_noop (string)
|
#define N_(string) gettext_noop(string)
|
||||||
#else
|
#else
|
||||||
#define N_(string) (string)
|
#define N_(string) (string)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_)
|
#if !defined(_)
|
||||||
#define _(x) (x)
|
#define _(string) (string)
|
||||||
|
#define NG_(single,plural,number) (plural)
|
||||||
#define N_(string) (string)
|
#define N_(string) (string)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -69,7 +71,7 @@
|
|||||||
"\nDeveloped by FlashCode <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
|
"\nDeveloped by FlashCode <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
|
||||||
"This program is free software; you can redistribute it and/or modify\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" \
|
"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" \
|
"(at your option) any later version.\n" \
|
||||||
"\n", \
|
"\n", \
|
||||||
\
|
\
|
||||||
@@ -79,8 +81,7 @@
|
|||||||
"GNU General Public License for more details.\n" \
|
"GNU General Public License for more details.\n" \
|
||||||
"\n" \
|
"\n" \
|
||||||
"You should have received a copy of the GNU General Public License\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" \
|
"along with this program. If not, see <http://www.gnu.org/licenses/>.\n\n"
|
||||||
"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n\n"
|
|
||||||
|
|
||||||
/* directory separator, depending on OS */
|
/* directory separator, depending on OS */
|
||||||
|
|
||||||
|
|||||||
+65
-22
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* weeconfig.c: WeeChat configuration */
|
/* weeconfig.c: WeeChat configuration */
|
||||||
@@ -40,6 +39,7 @@
|
|||||||
#include "alias.h"
|
#include "alias.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
|
#include "hotlist.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@@ -95,6 +95,7 @@ char *cfg_look_align_nick_values[] =
|
|||||||
int cfg_look_align_other;
|
int cfg_look_align_other;
|
||||||
int cfg_look_align_size;
|
int cfg_look_align_size;
|
||||||
int cfg_look_align_size_max;
|
int cfg_look_align_size_max;
|
||||||
|
int cfg_look_align_text_offset;
|
||||||
char *cfg_look_nick_completor;
|
char *cfg_look_nick_completor;
|
||||||
char *cfg_look_nick_completion_ignore;
|
char *cfg_look_nick_completion_ignore;
|
||||||
int cfg_look_nick_completion_smart;
|
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_count;
|
||||||
int cfg_look_hotlist_names_level;
|
int cfg_look_hotlist_names_level;
|
||||||
int cfg_look_hotlist_names_length;
|
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;
|
int cfg_look_day_change;
|
||||||
char *cfg_look_day_change_timestamp;
|
char *cfg_look_day_change_timestamp;
|
||||||
char *cfg_look_read_marker;
|
char *cfg_look_read_marker;
|
||||||
char *cfg_look_input_format;
|
char *cfg_look_input_format;
|
||||||
|
int cfg_look_paste_max_lines;
|
||||||
|
|
||||||
t_config_option weechat_options_look[] =
|
t_config_option weechat_options_look[] =
|
||||||
{ { "look_save_on_exit", N_("save config file on exit"),
|
{ { "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 },
|
NULL, NULL, &cfg_look_nicklist_min_size, NULL, config_change_buffers },
|
||||||
{ "look_nicklist_max_size", N_("max size for nicklist"),
|
{ "look_nicklist_max_size", N_("max size for nicklist"),
|
||||||
N_("max size for nicklist (width or height, depending on look_nicklist_position "
|
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,
|
OPTION_TYPE_INT, 0, 100, 0,
|
||||||
NULL, NULL, &cfg_look_nicklist_max_size, NULL, config_change_buffers },
|
NULL, NULL, &cfg_look_nicklist_max_size, NULL, config_change_buffers },
|
||||||
{ "look_nicklist_separator", N_("separator between chat and nicklist"),
|
{ "look_nicklist_separator", N_("separator between chat and nicklist"),
|
||||||
@@ -215,6 +222,13 @@ t_config_option weechat_options_look[] =
|
|||||||
"look_align_size)"),
|
"look_align_size)"),
|
||||||
OPTION_TYPE_INT, 8, 64, 20,
|
OPTION_TYPE_INT, 8, 64, 20,
|
||||||
NULL, NULL, &cfg_look_align_size_max, NULL, config_change_noop },
|
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"),
|
{ "look_nick_completor", N_("the string inserted after nick completion"),
|
||||||
N_("the string inserted after nick completion"),
|
N_("the string inserted after nick completion"),
|
||||||
OPTION_TYPE_STRING, 0, 0, 0,
|
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)"),
|
N_("max length of names in hotlist (0 = no limit)"),
|
||||||
OPTION_TYPE_INT, 0, 32, 0,
|
OPTION_TYPE_INT, 0, 32, 0,
|
||||||
NULL, NULL, &cfg_look_hotlist_names_length, NULL, config_change_buffer_content },
|
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"),
|
{ "look_day_change", N_("display special message when day changes"),
|
||||||
N_("display special message when day changes"),
|
N_("display special message when day changes"),
|
||||||
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
|
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 },
|
"%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"),
|
{ "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"),
|
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 },
|
" ", NULL, NULL, &cfg_look_read_marker, config_change_read_marker },
|
||||||
{ "look_input_format", N_("format for input prompt"),
|
{ "look_input_format", N_("format for input prompt"),
|
||||||
N_("format for input prompt ('%c' is replaced by channel or server, "
|
N_("format for input prompt ('%c' is replaced by channel or server, "
|
||||||
"'%n' by nick and '%m' by nick modes)"),
|
"'%n' by nick and '%m' by nick modes)"),
|
||||||
OPTION_TYPE_STRING, 0, 0, 0,
|
OPTION_TYPE_STRING, 0, 0, 0,
|
||||||
"[%n(%m)] ", NULL, NULL, &cfg_look_input_format, config_change_buffer_content },
|
"[%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 }
|
{ 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_nick;
|
||||||
int cfg_col_input_delimiters;
|
int cfg_col_input_delimiters;
|
||||||
int cfg_col_input_text_not_found;
|
int cfg_col_input_text_not_found;
|
||||||
|
int cfg_col_input_actions;
|
||||||
int cfg_col_input_bg;
|
int cfg_col_input_bg;
|
||||||
int cfg_col_nick;
|
int cfg_col_nick;
|
||||||
int cfg_col_nick_away;
|
int cfg_col_nick_away;
|
||||||
@@ -331,10 +355,11 @@ int cfg_col_nick_chanadmin;
|
|||||||
int cfg_col_nick_op;
|
int cfg_col_nick_op;
|
||||||
int cfg_col_nick_halfop;
|
int cfg_col_nick_halfop;
|
||||||
int cfg_col_nick_voice;
|
int cfg_col_nick_voice;
|
||||||
|
int cfg_col_nick_user;
|
||||||
int cfg_col_nick_more;
|
int cfg_col_nick_more;
|
||||||
int cfg_col_nick_sep;
|
int cfg_col_nick_sep;
|
||||||
int cfg_col_nick_self;
|
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_private;
|
||||||
int cfg_col_nick_bg;
|
int cfg_col_nick_bg;
|
||||||
int cfg_col_nicklist_bg;
|
int cfg_col_nicklist_bg;
|
||||||
@@ -519,6 +544,10 @@ t_config_option weechat_options_colors[] =
|
|||||||
N_("color for text not found"),
|
N_("color for text not found"),
|
||||||
OPTION_TYPE_COLOR, 0, 0, 0,
|
OPTION_TYPE_COLOR, 0, 0, 0,
|
||||||
"red", NULL, &cfg_col_input_text_not_found, NULL, &config_change_color },
|
"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"),
|
{ "col_input_bg", N_("background for input window"),
|
||||||
N_("background for input window"),
|
N_("background for input window"),
|
||||||
OPTION_TYPE_COLOR, 0, 0, 0,
|
OPTION_TYPE_COLOR, 0, 0, 0,
|
||||||
@@ -553,6 +582,10 @@ t_config_option weechat_options_colors[] =
|
|||||||
N_("color for voice symbol"),
|
N_("color for voice symbol"),
|
||||||
OPTION_TYPE_COLOR, 0, 0, 0,
|
OPTION_TYPE_COLOR, 0, 0, 0,
|
||||||
"yellow", NULL, &cfg_col_nick_voice, NULL, &config_change_color },
|
"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"),
|
{ "col_nick_more", N_("color for '+' when scrolling nicks"),
|
||||||
N_("color for '+' when scrolling nicks"),
|
N_("color for '+' when scrolling nicks"),
|
||||||
OPTION_TYPE_COLOR, 0, 0, 0,
|
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,
|
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
|
||||||
NULL, NULL, &cfg_irc_colors_receive, NULL, config_change_noop },
|
NULL, NULL, &cfg_irc_colors_receive, NULL, config_change_noop },
|
||||||
{ "irc_colors_send", N_("allow user to send colors"),
|
{ "irc_colors_send", N_("allow user to send colors"),
|
||||||
N_("allow user to send colors with special codes (%B=bold, %Cxx,yy=color, "
|
N_("allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, "
|
||||||
"%U=underline, %R=reverse)"),
|
"^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)"),
|
||||||
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
|
OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_TRUE,
|
||||||
NULL, NULL, &cfg_irc_colors_send, NULL, config_change_noop },
|
NULL, NULL, &cfg_irc_colors_send, NULL, config_change_noop },
|
||||||
{ "irc_send_unknown_commands", N_("send unknown commands to IRC server"),
|
{ "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 },
|
NULL, NULL, &cfg_dcc_timeout, NULL, &config_change_noop },
|
||||||
{ "dcc_blocksize", N_("block size for dcc packets"),
|
{ "dcc_blocksize", N_("block size for dcc packets"),
|
||||||
N_("block size for dcc packets in bytes (default: 65536)"),
|
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 },
|
NULL, NULL, &cfg_dcc_blocksize, NULL, &config_change_noop },
|
||||||
{ "dcc_fast_send", N_("does not wait for ACK when sending file"),
|
{ "dcc_fast_send", N_("does not wait for ACK when sending file"),
|
||||||
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 },
|
"", NULL, NULL, &(cfg_server.command), NULL },
|
||||||
{ "server_command_delay", N_("delay (in seconds) after command was executed"),
|
{ "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)"),
|
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 },
|
NULL, NULL, &(cfg_server.command_delay), NULL, NULL },
|
||||||
{ "server_autojoin", N_("list of channels to join when connected to server"),
|
{ "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\")"),
|
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);
|
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
|
* config_change_read_marker: called when read marker is changed
|
||||||
*/
|
*/
|
||||||
@@ -1167,10 +1211,7 @@ config_change_buffer_content ()
|
|||||||
void
|
void
|
||||||
config_change_read_marker ()
|
config_change_read_marker ()
|
||||||
{
|
{
|
||||||
t_gui_window *ptr_win;
|
gui_window_redraw_all_buffers ();
|
||||||
|
|
||||||
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
|
|
||||||
gui_window_redraw_buffer (ptr_win->buffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1221,7 +1262,7 @@ config_change_nicks_colors ()
|
|||||||
for (ptr_nick = ptr_channel->nicks; ptr_nick;
|
for (ptr_nick = ptr_channel->nicks; ptr_nick;
|
||||||
ptr_nick = ptr_nick->next_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);
|
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 */
|
/* reset away flag for all nicks/chans/servers */
|
||||||
irc_server_remove_away ();
|
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)
|
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 =
|
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;
|
for (ptr_buffer = gui_buffers; ptr_buffer;
|
||||||
ptr_buffer = ptr_buffer->next_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)
|
if (cfg_log_auto_server && !ptr_buffer->log_file)
|
||||||
gui_log_start (ptr_buffer);
|
gui_log_start (ptr_buffer);
|
||||||
else if (!cfg_log_auto_server && ptr_buffer->log_file)
|
else if (!cfg_log_auto_server && ptr_buffer->log_file)
|
||||||
gui_log_end (ptr_buffer);
|
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)
|
if (cfg_log_auto_channel && !ptr_buffer->log_file)
|
||||||
gui_log_start (ptr_buffer);
|
gui_log_start (ptr_buffer);
|
||||||
else if (!cfg_log_auto_channel && ptr_buffer->log_file)
|
else if (!cfg_log_auto_channel && ptr_buffer->log_file)
|
||||||
gui_log_end (ptr_buffer);
|
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)
|
if (cfg_log_auto_private && !ptr_buffer->log_file)
|
||||||
gui_log_start (ptr_buffer);
|
gui_log_start (ptr_buffer);
|
||||||
@@ -1389,6 +1430,8 @@ config_option_set_value (t_config_option *option, char *value)
|
|||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case OPTION_TYPE_STRING:
|
case OPTION_TYPE_STRING:
|
||||||
|
if ((option->max > 0) && (utf8_strlen (value) > option->max))
|
||||||
|
return -1;
|
||||||
if (*(option->ptr_string))
|
if (*(option->ptr_string))
|
||||||
free (*(option->ptr_string));
|
free (*(option->ptr_string));
|
||||||
*(option->ptr_string) = strdup (value);
|
*(option->ptr_string) = strdup (value);
|
||||||
@@ -2505,7 +2548,7 @@ config_write (char *config_name)
|
|||||||
for (ptr_server = irc_servers; ptr_server;
|
for (ptr_server = irc_servers; ptr_server;
|
||||||
ptr_server = ptr_server->next_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, "\n[server]\n");
|
||||||
weechat_iconv_fprintf (file, "server_name = \"%s\"\n", ptr_server->name);
|
weechat_iconv_fprintf (file, "server_name = \"%s\"\n", ptr_server->name);
|
||||||
|
|||||||
+16
-4
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -58,6 +57,13 @@
|
|||||||
#define CFG_LOOK_ALIGN_NICK_LEFT 1
|
#define CFG_LOOK_ALIGN_NICK_LEFT 1
|
||||||
#define CFG_LOOK_ALIGN_NICK_RIGHT 2
|
#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_OFF 0
|
||||||
#define CFG_IRC_DISPLAY_AWAY_LOCAL 1
|
#define CFG_IRC_DISPLAY_AWAY_LOCAL 1
|
||||||
#define CFG_IRC_DISPLAY_AWAY_CHANNEL 2
|
#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_other;
|
||||||
extern int cfg_look_align_size;
|
extern int cfg_look_align_size;
|
||||||
extern int cfg_look_align_size_max;
|
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_completor;
|
||||||
extern char *cfg_look_nick_completion_ignore;
|
extern char *cfg_look_nick_completion_ignore;
|
||||||
extern int cfg_look_nick_completion_smart;
|
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_count;
|
||||||
extern int cfg_look_hotlist_names_level;
|
extern int cfg_look_hotlist_names_level;
|
||||||
extern int cfg_look_hotlist_names_length;
|
extern int cfg_look_hotlist_names_length;
|
||||||
|
extern int cfg_look_hotlist_sort;
|
||||||
extern int cfg_look_day_change;
|
extern int cfg_look_day_change;
|
||||||
extern char *cfg_look_day_change_timestamp;
|
extern char *cfg_look_day_change_timestamp;
|
||||||
extern char *cfg_look_read_marker;
|
extern char *cfg_look_read_marker;
|
||||||
extern char *cfg_look_input_format;
|
extern char *cfg_look_input_format;
|
||||||
|
extern int cfg_look_paste_max_lines;
|
||||||
|
|
||||||
extern int cfg_col_real_white;
|
extern int cfg_col_real_white;
|
||||||
extern int cfg_col_separator;
|
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_nick;
|
||||||
extern int cfg_col_input_delimiters;
|
extern int cfg_col_input_delimiters;
|
||||||
extern int cfg_col_input_text_not_found;
|
extern int cfg_col_input_text_not_found;
|
||||||
|
extern int cfg_col_input_actions;
|
||||||
extern int cfg_col_input_bg;
|
extern int cfg_col_input_bg;
|
||||||
extern int cfg_col_nick;
|
extern int cfg_col_nick;
|
||||||
extern int cfg_col_nick_away;
|
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_op;
|
||||||
extern int cfg_col_nick_halfop;
|
extern int cfg_col_nick_halfop;
|
||||||
extern int cfg_col_nick_voice;
|
extern int cfg_col_nick_voice;
|
||||||
|
extern int cfg_col_nick_user;
|
||||||
extern int cfg_col_nick_more;
|
extern int cfg_col_nick_more;
|
||||||
extern int cfg_col_nick_sep;
|
extern int cfg_col_nick_sep;
|
||||||
extern int cfg_col_nick_self;
|
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_private;
|
||||||
extern int cfg_col_nick_bg;
|
extern int cfg_col_nick_bg;
|
||||||
extern int cfg_col_dcc_selected;
|
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_title ();
|
||||||
extern void config_change_buffers ();
|
extern void config_change_buffers ();
|
||||||
extern void config_change_buffer_content ();
|
extern void config_change_buffer_content ();
|
||||||
|
extern void config_change_hotlist ();
|
||||||
extern void config_change_read_marker ();
|
extern void config_change_read_marker ();
|
||||||
extern void config_change_charset ();
|
extern void config_change_charset ();
|
||||||
extern void config_change_one_server_buffer ();
|
extern void config_change_one_server_buffer ();
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* weelist.c: sorted lists management */
|
/* weelist.c: sorted lists management */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* 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
|
* 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.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,11 +11,12 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
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
|
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
|
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})
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
||||||
ADD_LIBRARY(weechat_gui_common STATIC ${LIB_GUI_COMMON_SRC})
|
ADD_LIBRARY(weechat_gui_common STATIC ${LIB_GUI_COMMON_SRC})
|
||||||
|
|
||||||
|
IF(ENABLE_GTK)
|
||||||
|
ADD_SUBDIRECTORY( gtk )
|
||||||
|
ENDIF(ENABLE_GTK)
|
||||||
|
|||||||
+2
-3
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\"
|
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 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
|
# 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.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
@@ -11,8 +11,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SET(WEECHAT_CURSES_SRC gui-curses-chat.c gui-curses-color.c gui-curses-infobar.c
|
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})
|
LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
|
||||||
ENDIF(NCURSES_FOUND)
|
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})
|
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
|
||||||
INCLUDE_DIRECTORIES(.. ../../common ../../irc ../../plugins)
|
INCLUDE_DIRECTORIES(.. ../../common ../../irc ../../plugins)
|
||||||
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})
|
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user