1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-08 19:34:14 -04:00
Commit Graph

2113 Commits

Author SHA1 Message Date
James Booth
5cf7ef0b4f Don't free default account name until it has been lowercased 2015-01-14 21:52:13 +00:00
Simon Effenberg
6f55d06e2b fix the fix (memory leak)
the "fix a potential leak" from Will Song is not fully addressing the
issue.. so now the "def" variable should definitely being freed
2015-01-14 08:18:52 +01:00
James Booth
e19d57779f Fixed segfault on eval_password due to moving popen call 2015-01-14 00:35:31 +00:00
Will Song
1264265691
fix a potential leak 2015-01-12 23:00:03 -06:00
Will Song
b1f79b9d35
add a memory check just in case 2015-01-12 22:51:00 -06:00
Will Song
b6536ddf88
fix tests 2015-01-12 22:39:12 -06:00
Will Song
c2758616d8
eval_password code is now in cmd_connect so that it can be changed
without clearing it. eval_password errors are also now ignored, along
with pclosing the popened eval_password.
2015-01-12 22:23:36 -06:00
James Booth
274d6e843e Show eval_password if exists on /account show 2015-01-13 00:51:21 +00:00
James Booth
a932998fb1 Removed unused include, free eval_password 2015-01-13 00:43:17 +00:00
James Booth
21f8b1c4ca Merge remote-tracking branch 'peterlvilim/keyring' 2015-01-13 00:41:56 +00:00
James Booth
a39ac6cd07 Merge remote-tracking branch 'savar/dynamic_input_block' 2015-01-12 23:41:15 +00:00
Simon Effenberg
34148e2101 adding preference option for dynamic input blocking
/inpblock is now having subcommands 'timeout' and 'dynamic'
with:

/inpblock timeout <milliseconds>

and

/inpblock dynamic <on|off>

Defaults are:

/inpblock timeout 500
/inpblock dynamic on

To get the old behavior specify:

/inpblock timeout 20
/inpblock dynamic off

The dynamic mode will block incrementally after something
should be written to the window or after a key was pressed. So pressing
a key would set the timeout to 0ms and after 10 timeouts to the next
bigger one.

Example (with dynamic mode on):

"/inpblock timeout 50"

timeout series:

10x 0ms
10x 10ms (0ms + 10 times since last keypress)
10x 30ms (10ms + 20 times since last keypress)
*x50ms until next key was pressed or
2015-01-12 11:32:32 +01:00
Simon Effenberg
c7ff3255b8 trying to block (and save cpu power) more dynamically
instead of blocking too long if inpblock is set to something like
500ms the input timeout is not set directly to inpblock but is
increasing dynamically from 0 to inpblock by a little algorithm

FIXME: the call from the win_* method to the ui_input_* method looks
wrong.. this causes a cross reference which shouldn't be
2015-01-12 08:08:07 +01:00
James Booth
0d0ed9b7ca Merge remote-tracking branch 'incertia/exit-title'
Conflicts:
	src/command/command.c
	src/config/preferences.c
	src/config/preferences.h
2015-01-12 01:12:42 +00:00
James Booth
c64484c6ed Renamed titlebar preference 2015-01-12 00:43:42 +00:00
James Booth
f2728096ea Use /gone preference 2015-01-11 23:25:50 +00:00
James Booth
13f0166aa0 Only show UI events for chat states when in session 2015-01-11 23:04:22 +00:00
James Booth
c16871d143 Added remaining chat states 2015-01-11 20:20:17 +00:00
James Booth
76bd2ec13f Send active chat state, handle composing and gone from recipients 2015-01-10 22:03:40 +00:00
James Booth
965e82b350 Added resource override for chat sessions 2015-01-10 21:07:40 +00:00
James Booth
7256e49396 Merge branch 'master' into chat-sessions 2015-01-10 19:23:59 +00:00
James Booth
c77a731cf0 Added comments to preferences module 2015-01-10 19:22:38 +00:00
James Booth
31c0f2ba78 Added preferences for showing resource in titlebar and messages 2015-01-10 19:10:10 +00:00
James Booth
c3ad3c0ba6 Show resource in titlebar and on each message 2015-01-10 18:35:59 +00:00
James Booth
3e1832b02e Renamed resource -> resource_override 2015-01-10 18:17:10 +00:00
James Booth
9bd2315d83 Fixed chat session tests 2015-01-10 00:25:27 +00:00
Will Song
e57fa1633a add exit title preference to group and add command for setting the preference 2015-01-08 10:18:29 -06:00
Will Song
22a8d7a8a3
check preferences before printing exit title 2015-01-08 10:06:39 -06:00
Will Song
89aaaddfbb Merge remote-tracking branch 'upstream/master' into exit-title 2015-01-08 10:03:15 -06:00
Will Song
f1641f3cf7
add exit title preference 2015-01-08 10:02:30 -06:00
Peter Vilim
0cb548683c fgets: buffer size 2015-01-07 21:37:35 -06:00
Peter Vilim
b298994ce7 fix for fgets 2015-01-07 21:16:18 -06:00
Peter Vilim
887cc1f419 merge 2015-01-07 21:07:32 -06:00
James Booth
5e7d2f5f91 Removed chat states from chat_session module, WIP 2015-01-08 00:57:25 +00:00
Peter Vilim
492c548aa6 Add support for evaluated password 2015-01-07 02:54:42 -06:00
Peter Vilim
b4f37b9e31 iofixed 2015-01-07 00:17:59 -06:00
Peter Vilim
401835f32a Add support for evaluated password 2015-01-06 23:00:02 -06:00
James Booth
8bbf126e83 Refactored chat sessions in _chat_handler 2015-01-07 00:17:54 +00:00
James Booth
95ad564372 Added offline handler for chat sessions 2015-01-06 23:19:56 +00:00
James Booth
ab963499b5 Log instead of showing error message when chat recipient not found 2015-01-06 21:51:41 +00:00
James Booth
9cb0d52e7d Added removal of chat sessions, only send gone when messages have been exchanged 2015-01-05 23:39:43 +00:00
James Booth
c2dccad818 Create chat session when no resource 2015-01-05 00:48:30 +00:00
James Booth
8326c8b3a2 Refactored chat session handling on sending message 2015-01-04 23:40:10 +00:00
James Booth
42a5c431c7 Use resource in chat sessions 2015-01-04 20:19:42 +00:00
James Booth
4898ed10a4 Fix for receiving regular chat messages with no type attribute 2015-01-04 17:54:56 +00:00
Will Song
30610f7c48 Merge remote-tracking branch 'upstream/master' into exit-title 2015-01-03 12:41:42 -06:00
James Booth
f5e5315125 Updated CHANGELOG and navigation help 2015-01-03 02:35:19 +00:00
Will Song
832074de4a
fix tests (hopefully) and use /bin/echo to avoid use of builtin shell commands 2015-01-02 20:05:55 -06:00
James Booth
ad1460626f Use /bin/echo for terminal window title 2015-01-03 01:35:27 +00:00
James Booth
90b851c848 Merge branch 'master' into title 2015-01-03 01:10:41 +00:00