Sébastien Helleu
7ddc815726
relay: actually use the client status "waiting_auth" in irc and weechat protocols ( closes #1358 )
...
Now the status "waiting_auth" is used and displayed in the relay buffer.
When a client connects, there are now 2 messages (except for irc protocol if
there's no password required):
relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
relay: client 1/weechat/1.2.3.4 authenticated
If the authentication fails, the messages are:
relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
=!= relay: authentication failed with client 1/weechat/1.2.3.4
2020-04-12 17:46:46 +02:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
d6d8b9094f
irc: replace call to gmtime by gmtime_r
2018-10-01 22:22:06 +02:00
Sébastien Helleu
bf48efffec
relay: fix compiler warnings on calls to snprintf
2018-07-13 21:25:07 +02:00
Sébastien Helleu
eb8043f2b4
relay: remove unneeded check on variable irc_argv
...
The variable "irc_argv" is always set if irc_argc > 0.
2018-05-19 08:14:56 +02:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02:00
Sébastien Helleu
cf51849ac5
relay: fix send of "PART" command in backlog (irc protocol)
2017-07-23 16:13:00 +02:00
Sébastien Helleu
b95da03f3a
relay: end capability negociation if CAP REQ is received without arguments (issue #1040 )
...
This fixes a bug with clients like Atomic which are sending "CAP REQ :".
2017-07-23 15:47:06 +02:00
Sébastien Helleu
70839c732e
relay: fix initialization of irc_argv_eol, free variable after use (issue #1040 )
2017-07-23 14:22:12 +02:00
Sébastien Helleu
a58d3fac4c
relay: fix parsing of CAP command without arguments in irc protocol, send ACK only if all capabilities received are OK and NAK otherwise ( closes #1040 )
2017-07-23 13:58:45 +02:00
Simmo Saan
996aaf0613
relay: remove local variables used only for sizeof
2017-06-03 15:56:26 +03:00
Sébastien Helleu
1bace336bc
relay: fix parsing of CAP command arguments in irc protocol ( closes #995 )
2017-05-19 21:21:30 +02:00
Sébastien Helleu
9e0d103ff7
relay: check that pointers received in arguments are not NULL in "free" functions
...
Functions:
- relay_irc_free
- relay_client_outqueue_free
- relay_raw_message_free
- relay_weechat_msg_free
- relay_weechat_nicklist_item_free
- relay_weechat_nicklist_free
- relay_weechat_free
2017-03-25 14:07:46 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
d4a9c48cc8
relay: set status to AUTH_FAILED in case of auth failure in irc protocol (issue #825 )
2016-10-25 07:23:26 +02:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
a4d1dfa8f4
relay: do not execute any command received from an irc relay client ( closes #699 )
2016-03-05 10:59:37 +01:00
Sébastien Helleu
9263634d2e
relay: fix websocket frame decoding, answer a PONG to PING ( closes #675 )
2016-02-06 14:08:20 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Nick
52820627f0
relay: add option relay.irc.backlog_since_last_message
2015-12-20 08:19:59 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
1f1611c916
relay: wait for message CAP END before sending join of channels and backlog to the client ( closes #223 )
2014-12-07 19:14:37 +01:00
Sébastien Helleu
64348fbd6e
relay: add host in sender for IRC backlog PRIVMSG messages sent to clients
2014-10-08 22:15:23 +02:00
Sébastien Helleu
ddd7a85f2d
relay: fix crash when an IRC "MODE" command is received from client without arguments
2014-08-09 16:14:44 +02:00
Sébastien Helleu
a311764d12
relay: add signal "relay_client_auth_ok" for irc and weechat protocols
2014-04-13 08:27:27 +02:00
Sebastien Helleu
4c3a10506a
relay: fix size used in a snprintf
2014-02-28 11:40:55 +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
57e195391b
relay: fix NULL pointer when reading buffer lines for irc backlog
2014-02-22 11:44:19 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
59481611dd
relay: send backlog for irc private buffers
2014-01-31 16:41:12 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
e900579fba
relay: add support of secured data in option relay.network.password (evaluate content) (patch from Nils Görs)
2013-09-19 15:11:51 +02:00
Sebastien Helleu
e459939ead
relay: fix uncontrolled format string in redirection of irc commands
2013-05-18 22:42:16 +02:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
c17d3e155c
relay: add support of multiple servers on same port for irc protocol (the client must send the server in the "PASS" command)
2013-02-23 08:33:38 +01:00
Sebastien Helleu
c2aeb69c46
relay: add experimental websocket server support (RFC 6455) for irc and weechat protocols, new option relay.network.websocket_allowed_origins
...
It is a partial implementation of RFC 6455: fragmentation and control frames are
not yet supported.
Text and binary frames are supported.
2013-02-10 20:22:13 +01:00
Sebastien Helleu
25eaec3864
core: use size of 32 for hashtables (instead of 4, 8 or 16)
...
A size of 32 will use a little more memory but will reduce collisions in key
hashs, and then length of linked lists inside hash structure (faster search in
hashtable).
2013-01-26 19:26:43 +01:00
Sebastien Helleu
57024ab1e4
relay: fix duplicated messages sent to irc clients (when messages are redirected) (bug #37870 )
2013-01-11 10:30:44 +01:00
Sebastien Helleu
ca205ccb8c
relay: fix typo in comment
2013-01-11 10:28:28 +01:00
Sebastien Helleu
f1580f5276
relay: add debug message for signal "irc_disconnected"
2013-01-11 10:27:26 +01:00
Sebastien Helleu
3c782bd905
relay: fix name of signal in debug message (replace "irc_out" by "irc_outtags")
2013-01-11 09:28:58 +01:00
Sebastien Helleu
4ebd300340
relay: send UTC time in irc backlog (when server capability "server-time" is enabled)
2013-01-01 15:13:05 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00