5098 Commits

Author SHA1 Message Date
Sebastien Helleu
dd32052fec core: add support of italic text (requires ncurses >= 5.9 patch 20130831) 2013-11-02 10:58:38 +01:00
Sebastien Helleu
cf81a6dfcd core: use ncurses include path when compiling with cmake 2013-11-02 09:43:20 +01:00
Sebastien Helleu
591b111891 weercd.py: major code cleanup, full PEP8 compliance, replace %-formatting with .format()
All changes:
- import the new division operator and the print function
- replace the %-formatting with .format()
- full PEP8 compliance
- major code cleanup: new function send_cmd() to send an IRC command,
  split flood() function into many functions.

The messages sent from a file (or stdin) are formatted with
".format(self=self)", so that attributes from class Client are replaced
with their values. You can use for example these attributes:

  {self.nick}     current client nick
  {self.name}     the server name ('weercd')
  {self.version}  the server version (version of weercd.py)
2013-11-02 08:47:59 +01:00
Sebastien Helleu
4af78fa4aa weercd.py: use argparse module to parse command line arguments, remove config file
The configuration file weercd.conf has been removed. Instead, default options
can be set in an environment variable called "WEERCD_OPTIONS".
A file with options can be used, then name must be given as option with a
leading "@", for example: python weercd.py @args.txt

The option "action" has been removed. Default behavior is still to flood the
client. Actions "user" and "file" have been merged into a single option
-f/--file, which accepts a file, or special value "-" to read stdin.

The script now requires python >= 2.7 (because the argparse module is not
available in python 2.6 and older versions).
2013-10-27 16:58:46 +01:00
Sebastien Helleu
f111abdfc1 irc: fix auto-switch to channel buffer when doing /join channel (without "#") 2013-10-27 15:08:30 +01:00
Sebastien Helleu
cc8f798237 core: remove version/date in ChangeLog/NEWS (let asciidoc set that with attributes date/revision) 2013-10-27 14:04:29 +01:00
Sebastien Helleu
14cf7bd20f core: fix auto-apply of window layout in current window when option irc.look.buffer_switch_autojoin is on 2013-10-27 11:07:33 +01:00
Sebastien Helleu
0069dbb5f1 core: fix bind of keys in cursor/mouse context when key starts with "@" (remove the warning about unsafe key) 2013-10-26 12:22:22 +02:00
Sebastien Helleu
f3be467dd0 doc: fix typos in color codes (developer's guide) 2013-10-26 10:11:46 +02:00
Sebastien Helleu
d4fd0293ad doc: fix layout of relay protocol (HTML version) when it is printed 2013-10-24 16:10:36 +02:00
Sebastien Helleu
5a333b788d lua: fix crash on calls to callbacks during load of script 2013-10-24 14:21:18 +02:00
Sebastien Helleu
08015304bd doc: replace "Act:" by "H:" in hotlist (user's guide) 2013-10-23 19:37:51 +02:00
Sebastien Helleu
5243d18c76 doc: add jabber.py and bitlbee/minbif in list of features (user's guide) 2013-10-23 14:41:28 +02:00
Sebastien Helleu
52d72a3934 core: fix typo in /help weechat.history.max_buffer_lines_number 2013-10-20 21:49:21 +02:00
Sebastien Helleu
da695533d4 core: fix typo in /help weechat.history.max_buffer_lines_minutes 2013-10-20 21:42:54 +02:00
Sebastien Helleu
3088d319cf doc: use asciidoc system attribute {sys:command} for year in copyright of man page 2013-10-20 21:26:17 +02:00
Sebastien Helleu
7014fbdd60 core: add warning about value 0 in help of some history options
Options affected:
- weechat.history.max_buffer_lines_minutes
- weechat.history.max_buffer_lines_number
- weechat.history.max_commands
2013-10-20 12:21:09 +02:00
Sebastien Helleu
64d01f47fa doc: fix layout of HTML docs when they are printed
Some long lines in docs were causing a zoom, and then the text font was
smaller than it should be. Some styles have been fixed to remove the zoom
and keep the original ratio.
2013-10-20 11:39:11 +02:00
Sebastien Helleu
53ec644ce1 core: fix truncated prefix when filters are toggled (bug #40204) 2013-10-19 16:21:20 +02:00
Sebastien Helleu
43c1280343 doc: use asciidoc attribute for year in copyright of man page 2013-10-19 12:52:45 +02:00
Sebastien Helleu
ce7eb3ac73 core: add file "compile" in .gitignore 2013-10-19 12:46:19 +02:00
Sebastien Helleu
958cf969b7 core: remove dependencies in weechat.cygport.in, let cygport tool do that automatically 2013-10-19 12:23:24 +02:00
Sebastien Helleu
9ab05d600d doc: add version >= 0.4.2 for new format of callback in function bar_item_new (plugin API reference) 2013-10-19 11:50:18 +02:00
Sebastien Helleu
88058bbccf core: add file weechat.cygport.in in tarballs (fix compilation error when compiling tarball) 2013-10-15 10:29:38 +02:00
Sebastien Helleu
07b34b053d doc: add nick modes in screen layout (user's guide) 2013-10-13 09:05:39 +02:00
Sebastien Helleu
1466a56585 core: add cygport file to build Cygwin packages 2013-10-12 19:05:27 +02:00
Sebastien Helleu
0e7ba42dfd doc: use a build directory in example of compilation with autotools (user's guide) 2013-10-12 15:58:56 +02:00
Sebastien Helleu
2bde9453ed core: use one date format when day changes from day to day+1 2013-10-10 19:42:11 +02:00
Sebastien Helleu
2a50f23e3d doc: fix typo in relay protocol 2013-10-09 17:31:55 +02:00
Sebastien Helleu
4b94b74990 irc: add option irc.look.notice_welcome_tags 2013-10-08 22:15:11 +02:00
Sebastien Helleu
d82f8c8165 irc: add server option "default_msg_kick" to customize default kick/kickban message (task #12777) (patch from Nils Görs) 2013-10-08 19:57:04 +02:00
Sebastien Helleu
4adbb8da1e Revert "core: remove unneeded dependencies docbook-xml and docbook-xsl to build man page"
This reverts commit 5a9422855715c762e1e096dc95ad22ab0f835b27.

These two packages are needed to build man pages without network access.
2013-10-08 17:04:58 +02:00
Sebastien Helleu
5a94228557 core: remove unneeded dependencies docbook-xml and docbook-xsl to build man page 2013-10-08 07:53:52 +02:00
Sebastien Helleu
f2b2a3d736 core: fix typo in a french translation 2013-10-06 13:44:32 +02:00
Sebastien Helleu
3dc4b41a66 core: remove version from field "Project-Id-Version" in gettext files 2013-10-06 13:43:10 +02:00
Sebastien Helleu
07115ef3d0 core: add options to customize default text search in buffers
New options:
- weechat.look.buffer_search_case_sensitive (boolean, off by default)
- weechat.look.buffer_search_force_default (boolean, off by default)
- weechat.look.buffer_search_regex (boolean, off by default)
- weechat.look.buffer_search_where (prefix, message (by default), prefix_message)
2013-10-06 11:59:42 +02:00
Sebastien Helleu
7364853c9d core: remove warning about proxy not found for option weechat.network.proxy_curl on startup
Proxies are not yet fully loaded (when reading weechat.conf), so the warning
is not displayed on startup, but only when option is changed.
2013-10-06 11:34:49 +02:00
Sebastien Helleu
66a0eb7a0b irc: improve help of server option "autojoin" 2013-10-06 11:29:38 +02:00
Sebastien Helleu
9f1658ef03 Version 0.4.3-dev 2013-10-06 10:21:49 +02:00
Sebastien Helleu
7785f7ea22 Version 0.4.2 v0.4.2 2013-10-06 08:58:14 +02:00
Sebastien Helleu
0cef9a220d core: fix detection of python on Cygwin (autotools) 2013-10-05 20:23:07 +02:00
Sebastien Helleu
8fb67c241d core: add detection of pkg-config (required on Cygwin)
This fixes the detection of enchant lib, the macro PKG_CHECK_MODULES requires
pkg-config.
2013-10-05 20:19:59 +02:00
Sebastien Helleu
b5f6874f2c core: move the "-no-undefined" from LDFLAGS in configure.ac to Makefile.am in plugins
This "-no-undefined" was causing an error when detecting "ld" lib on Cygwin.
2013-10-05 20:17:18 +02:00
Sebastien Helleu
a6c188ce4f relay: fix decoding of websocket frames when there are multiple frames in a single message received (only the first one was decoded) 2013-10-05 16:49:39 +02:00
Sebastien Helleu
7bf712d4c9 core: fix display of read marker after buffer switch when there is no line displayed after (only filtered lines) 2013-10-05 10:19:48 +02:00
Sebastien Helleu
1583ca88e5 irc: use "private" notify for welcome notices displayed in channel (like when they are displayed in server buffer) 2013-10-05 10:19:15 +02:00
Sebastien Helleu
5a119bb0f1 irc: remove target of notice (self nick) in the display of channel welcome notice (fix highlight problem) 2013-10-05 08:12:08 +02:00
Sebastien Helleu
86008b8502 irc: display target of notice when it is displayed in channel
With the new option irc.look.notice_welcome_redirect, a private notice could
have a channel at beginning of message (with format "[#channel]") and then be
displayed on the channel, without difference with a real channel notice
(received by all nicks in channel).

For example with these commands:

  /notice nick2 [#channel] private notice
  /notice #channel notice for whole channel

Old display was (on receiver side, in #channel):

  -- | Notice(nick1): private notice
  -- | Notice(nick1): notice for whole channel

New display is:

  -- | Notice(nick1) -> nick2: private notice
  -- | Notice(nick1) -> #channel: notice for whole channel
2013-10-04 14:07:08 +02:00
Sebastien Helleu
22b53c6019 irc: fix reconnection to server using IPv6 (bug #38819, bug #40166) 2013-10-03 19:46:53 +02:00
Sebastien Helleu
32f2ec42c6 core: replace some code by calls to function gui_chat_clrtoeol() 2013-10-02 16:24:03 +02:00