1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00
Commit Graph

1843 Commits

Author SHA1 Message Date
Sebastien Helleu 97254780d6 exec: add exec plugin 2014-03-11 17:49:49 +01:00
Sebastien Helleu cd66b459de relay: search buffers by full name 2014-03-11 15:30:51 +01:00
Sebastien Helleu e3207000dd fifo: search buffer by full name when text is received in pipe 2014-03-11 15:16:55 +01:00
Sebastien Helleu acb24d9d2a trigger: add plugin name in error messages 2014-03-10 21:10:23 +01:00
Sebastien Helleu 765b603cb2 trigger: remove unneeded code to make C compiler happy 2014-03-09 09:13:29 +01:00
Sebastien Helleu 1589e54e02 trigger: fix typo in a comment 2014-03-08 09:15:17 +01:00
Sebastien Helleu f62472e377 script: fix scroll on script buffer in the detailed view of script (closes #6) 2014-03-07 17:50:18 +01:00
Sebastien Helleu 7a191c2de1 relay: fix crash on /upgrade received from a client (weechat protocol)
Some commands like /upgrade sent by relay client can cause problems, because
they were executed immediately (while relay code is running). The /upgrade
command unloads all plugins, so the result is unpredictable (it can cause a
crash).

This commit adds a timer (1 millisecond) to delay the execution of command
after we go back in the WeeChat main loop.
2014-03-07 09:22:21 +01:00
Sebastien Helleu 2d7778292a relay: add info "relay_client_count" with optional status name as argument
Use in evaluated strings (for example in /eval or triggers):
- "${info:relay_client_count}": total number of relay clients (any status)

With a specific status:
- "${info:relay_client_count,connecting}"
- "${info:relay_client_count,waiting_auth}"
- "${info:relay_client_count,connected}"
- "${info:relay_client_count,auth_failed}"
- "${info:relay_client_count,disconnected}"
2014-03-05 11:49:25 +01:00
Sebastien Helleu 0995eb334f relay: add signals "relay_client_xxx" for client status changes (closes #2)
New signals:
- relay_client_connecting
- relay_client_waiting_auth
- relay_client_connected
- relay_client_auth_failed
- relay_client_disconnected
2014-03-05 11:43:32 +01:00
Sebastien Helleu fba765cb8f trigger: update description of trigger plugin 2014-03-04 21:48:23 +01:00
Sebastien Helleu 2b2c729854 trigger: add some missing "+" after spaces in regex of default triggers cmd_pass/msg_auth 2014-03-04 12:38:54 +01:00
Sebastien Helleu 3c398bd61d rmodifier: remove plugin (replaced by trigger) 2014-03-04 12:08:33 +01:00
Sebastien Helleu 16c13e94a6 trigger: add variable "tg_notify" (notify level of a message, if different from "none") 2014-03-02 12:35:34 +01:00
Sebastien Helleu cc5ab76186 trigger: allow chars '\' and '(' as delimiter in regex 2014-03-02 08:40:17 +01:00
Sebastien Helleu ddf3e9043b trigger: do not create the trigger with /trigger add if the regex is invalid 2014-03-02 08:32:05 +01:00
Sebastien Helleu 8f0294f8d0 trigger: fix typo in /help trigger 2014-03-01 19:00:54 +01:00
Sebastien Helleu 7a1798a7fb trigger: fix typo in /help trigger 2014-03-01 17:42:28 +01:00
Sebastien Helleu 44b8447ff0 trigger: make optional the alignment on second and max calls (in hook timer) 2014-03-01 17:25:48 +01:00
Sebastien Helleu 050d2023d6 irc: fix colors in message with CTCP reply sent to another user 2014-02-28 15:07:23 +01:00
Sebastien Helleu cf48fa4642 irc: evaluate content of server options "username" and "realname" 2014-02-28 15:00:39 +01:00
Sebastien Helleu 13b0a88f21 trigger: allow empty return code in command /trigger {add|addoff|addreplace} 2014-02-28 11:48:59 +01:00
Sebastien Helleu 02dcc3cb69 xfer: replace constant by sizeof in a call to snprintf 2014-02-28 11:45:18 +01:00
Sebastien Helleu 7ff2dd13cb rmodifier: fix size used in a snprintf 2014-02-28 11:41:14 +01:00
Sebastien Helleu 4c3a10506a relay: fix size used in a snprintf 2014-02-28 11:40:55 +01:00
Sebastien Helleu 82ade05f66 irc: fix size used in some snprintf 2014-02-28 11:39:48 +01:00
Sebastien Helleu 6ea8c2d83c irc: fix some malloc sizes 2014-02-28 11:39:24 +01:00
Sebastien Helleu 7213fe5826 scripts: fix size used in some snprintf 2014-02-28 11:38:23 +01:00
Sebastien Helleu fdfee08cf8 relay: add option relay.network.clients_purge_delay 2014-02-23 20:32:42 +01:00
Sebastien Helleu 897bb0950c relay: fix freeze after /upgrade when many disconnected clients still exist
The hooks for the WeeChat disconnected clients are not created again
after /upgrade (they were removed on client disconnection, so there is
no reason to create them again).

The hooks like nicklist sync are called often (for example on irc
disconnection), which can cause long freeze if many WeeChat disconnected
clients exist in relay.
2014-02-23 13:07:45 +01:00
Sebastien Helleu 980326c685 trigger: fix potential uninitialized pointer in signal hook callback 2014-02-22 20:23:08 +01:00
Sebastien Helleu c3775888bd trigger: fix crash when a signal is received with type "int" and NULL pointer in signal_data 2014-02-22 17:10:35 +01:00
Sebastien Helleu 0c3835d824 scripts: fix crash when a signal is received with type "int" and NULL pointer in signal_data 2014-02-22 17:10:01 +01:00
Sebastien Helleu a08679c887 irc: set option irc.network.autoreconnect_delay_max to 600 by default, increase max value to 604800 seconds (7 days) 2014-02-22 16:33:02 +01:00
Sebastien Helleu 60456c31e9 relay: remove dead assignment in function relay_client_recv_cb 2014-02-22 15:13:26 +01:00
Sebastien Helleu 381140f964 irc: remove dead assignment in function irc_ignore_check 2014-02-22 14:59:24 +01:00
Sebastien Helleu 3ef27075f9 xfer: remove dead assignment in function xfer_add_cb 2014-02-22 14:54:21 +01:00
Sebastien Helleu e4493a1b0c relay: remove dead assignment in function relay_irc_get_line_info 2014-02-22 14:51:59 +01:00
Sebastien Helleu 86f5145e1a irc: fix read of MODES server value when in commands /op, /deop, /voice, /devoice, /halfop, /dehalfop 2014-02-22 14:30:30 +01:00
Sebastien Helleu 6339c15c6d script: remove dead assignments in functions script_action_{unload|reload} 2014-02-22 13:57:28 +01:00
Sebastien Helleu 4a9e1c98d2 irc: remove dead assignments in functions irc_server_str(n)casecmp 2014-02-22 13:37:54 +01:00
Sebastien Helleu c3c1a63ea8 trigger: use command "/print -beep" in default trigger "beep" 2014-02-22 12:02:02 +01:00
Sebastien Helleu 57e195391b relay: fix NULL pointer when reading buffer lines for irc backlog 2014-02-22 11:44:19 +01:00
Sebastien Helleu 639fbbff79 trigger: fix wrong info in /help trigger.trigger.xxx.regex 2014-02-21 17:59:33 +01:00
Sebastien Helleu 3847318497 core: update translations 2014-02-21 16:32:34 +01:00
Sebastien Helleu f907ea17d5 Merge branch 'trigger' 2014-02-21 15:36:14 +01:00
Sebastien Helleu d6e7c9fda6 trigger: return WEECHAT_RC_ERROR in command /trigger if arguments are wrong/missing 2014-02-21 14:48:23 +01:00
Sebastien Helleu 078f549c4a rmodifier: return WEECHAT_RC_ERROR in command /rmodifier if arguments are wrong/missing 2014-02-21 13:39:26 +01:00
Sebastien Helleu eb26e13814 relay: return WEECHAT_RC_ERROR in command /relay if arguments are wrong/missing 2014-02-21 13:39:03 +01:00
Sebastien Helleu a3253378b7 script: return WEECHAT_RC_ERROR in command /script if arguments are wrong/missing 2014-02-21 13:38:46 +01:00