1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
Commit Graph

220 Commits

Author SHA1 Message Date
James Booth
c9ed583412 Fixed some memory leaks 2012-11-26 02:20:44 +00:00
James Booth
b2f9e1ad5f Further tidy up of windows.c 2012-11-26 00:57:41 +00:00
James Booth
e131afdb12 windows tidy up 2012-11-26 00:01:34 +00:00
James Booth
58655a90c3 Fixed help config file locations 2012-11-25 22:08:41 +00:00
James Booth
921f026cba Added auto reconnect, and /reconnect command to control interval 2012-11-25 02:14:38 +00:00
James Booth
faeea56bb5 Revert "Stop ctrl-c quitting with /ctrlc off"
This reverts commit 721df8ca48.
2012-11-23 02:54:35 +00:00
James Booth
721df8ca48 Stop ctrl-c quitting with /ctrlc off 2012-11-23 02:00:51 +00:00
James Booth
cd4465394b Added theme files support with /theme command 2012-11-21 22:33:07 +00:00
James Booth
118d97cd90 Handling commands after /disconnect 2012-11-19 23:15:42 +00:00
James Booth
346ed2a8e8 Moved disconnect code to profanity module 2012-11-19 22:23:48 +00:00
James Booth
e9d6ba2117 Allow nick change in chat room 2012-11-18 18:36:17 +00:00
James Booth
78dd79f6a0 Commands now use parser function to handle parameters 2012-11-18 02:40:49 +00:00
James Booth
0cec188eb5 Added usage of command parser 2012-11-18 00:54:39 +00:00
James Booth
824eaa1678 Added parser module 2012-11-18 00:07:00 +00:00
Dmitry Podgorny
d234a71770 _cmd_set_boolean_preference: fix usage allocation 2012-11-16 13:49:26 +02:00
Dmitry Podgorny
5e6a1fed78 _cmd_tiny: fix allocation for usage variable 2012-11-16 13:44:15 +02:00
James Booth
b5d1a8edcb Started work on command parser 2012-11-15 02:31:31 +00:00
James Booth
c87eeee836 Renamed /status -> /info 2012-11-14 01:39:26 +00:00
James Booth
de2f060742 Added /wins command to list active windows 2012-11-14 00:39:34 +00:00
James Booth
faa5f8871f Merge pull request #81 from pasis/priority
introduce priority support
2012-11-13 14:40:24 -08:00
James Booth
8ecbe0c590 Fixed help command name clash on status 2012-11-13 22:24:37 +00:00
Dmitry Podgorny
52c4c3d953 introduce _strtoi() and validation of typed numbers 2012-11-14 00:23:06 +02:00
James Booth
e506986ef5 Added basic /status command to find out about a specific contact 2012-11-13 22:08:46 +00:00
Dmitry Podgorny
a114fe88b8 introduce priority support
add new command /priority <int>
improve jabber_update_presence()
use jabber_update_presence() for sending initial presence
save priority and status string to jabber_conn structure
2012-11-13 12:51:28 +02:00
James Booth
c67b1d6f40 Fixed help on log command 2012-11-12 19:50:14 +00:00
Dmitry Podgorny
e559c33df4 complete log rotation support
add command '/log maxsize <int>'
save maxsize value to config file
when maxsize < 64 default value 1MB is used
2012-11-12 11:13:03 +02:00
James Booth
2234979031 Changed /who command to allow available and unavailable 2012-11-12 00:21:49 +00:00
James Booth
5ef8aa8c69 Added /help list to list all commands 2012-11-11 23:57:02 +00:00
James Booth
07d624c513 Shortened /sub "request" parameter to "req", and formatted help 2012-11-11 19:32:42 +00:00
Dmitry Podgorny
fb276338fa rename _cmd_reset_who_completer 2012-11-11 16:32:18 +02:00
Dmitry Podgorny
ef64262f8b fix autocompletion for /sub command 2012-11-11 16:16:31 +02:00
Dmitry Podgorny
c3b0e80432 add subscription support 2012-11-11 14:00:21 +02:00
James Booth
aebca570a4 Renamed params in jabber_join 2012-11-10 18:28:45 +00:00
James Booth
7799623b4a Show error text if received 2012-11-10 02:28:38 +00:00
James Booth
81f9292948 Tidy up leaving room 2012-11-10 01:17:16 +00:00
James Booth
8099dfbde6 Fixed leaving chat room 2012-11-09 01:31:52 +00:00
James Booth
76149e1f31 Show delayed time on messages received whilst offline
Also do not show chat state notifications received whilst offline
2012-11-08 22:14:41 +00:00
James Booth
3dd1575549 Added help for chat rooms 2012-11-08 00:29:52 +00:00
James Booth
c967cd9dc9 Using /who in chat room shows room occupants 2012-11-08 00:22:15 +00:00
James Booth
fb3d7a47d2 Leaving chat rooms on /close 2012-11-06 00:00:25 +00:00
James Booth
517bc30360 Handle sending messages in groupchat 2012-11-05 23:24:29 +00:00
James Booth
2f6361a578 Handle room presence notifications 2012-11-05 21:36:32 +00:00
James Booth
c8fe2a4aca Removed debug when joining room 2012-11-04 23:09:15 +00:00
James Booth
5e4c662b23 Added jabber_join for MUC 2012-11-04 22:59:52 +00:00
James Booth
191b3b96a2 Basic /join command 2012-11-04 01:27:01 +00:00
James Booth
4be7833e2b Added a seperate option to enable outgoing typing notifications 2012-11-01 00:12:35 +00:00
James Booth
270ac03558 Fixed invalid state transition from <active/> to <paused/> 2012-10-31 23:41:30 +00:00
James Booth
81dd0a1556 Only send chat states when preference set 2012-10-31 22:08:00 +00:00
James Booth
7982d7061b Added states preference to enable chat states 2012-10-31 21:41:00 +00:00
James Booth
baced85767 Send <gone/> when closing chat window 2012-10-31 21:30:58 +00:00
James Booth
d13794bf60 Load roster before sending presence 2012-10-28 20:52:30 +00:00
James Booth
4b6002ae63 Merge branch 'master' into dev 2012-10-28 18:51:33 +00:00
James Booth
15cdc69f31 Added basic subscriptions 2012-10-28 18:51:13 +00:00
James Booth
0e9451f5e8 Allocate memory for additional /who completion 2012-10-28 18:01:13 +00:00
James Booth
cd56134ebb Added offline to /who autocomplete 2012-10-28 02:58:12 +00:00
James Booth
7aa177c668 Added /who autocomplete 2012-10-28 01:47:57 +01:00
James Booth
6a32ed4571 Moved remaining autocomplete code to command.c 2012-10-28 01:42:26 +01:00
James Booth
34392622ea Moved autcomplete code to command.c 2012-10-28 01:08:04 +01:00
James Booth
8258e7a3ef Added /intype setting
Seperate settings for showing contact typing in UI (/intype), and
as desktop notifications (/notify typing).
2012-10-28 00:33:20 +01:00
James Booth
7e26fcdf84 Added type autcomplete for /notify 2012-10-27 22:22:30 +01:00
James Booth
c71259c322 Unified desktop notification preferences 2012-10-27 22:05:08 +01:00
James Booth
7ba66d7edb Rewrote settings help summaries 2012-10-27 19:46:48 +01:00
James Booth
847850742c Refactored disconnect 2012-10-27 18:26:57 +01:00
James Booth
28d388319a Added /disconnect command 2012-10-27 18:12:04 +01:00
James Booth
852112cda8 Removed _shutdown function in profanity.c 2012-10-27 17:40:17 +01:00
Dmitry Podgorny
d6f87e7a16 _cmd_tiny: fix possible NULL pointer dereference
Check 'url' for NULL and move free(url) out of if-else structure
2012-10-24 13:43:25 +03:00
James Booth
e49bea4d6b Fixed possible NULL pointer references when offline 2012-10-24 02:18:20 +01:00
James Booth
8322c48d3e Added autocomplete for version checking parameter 2012-10-24 01:39:52 +01:00
James Booth
2ca8f5b62e Made version check a user preference 2012-10-24 01:35:36 +01:00
James Booth
d19afc3507 Added /about command
Useful for showing version
2012-10-23 00:18:28 +01:00
James Booth
907b5cf801 Trailing whitespace 2012-10-23 00:00:10 +01:00
James Booth
15de3d4a8f Split help into sections
Most of the time complete help was too big for the screen
2012-10-22 23:58:47 +01:00
James Booth
3f8813bb1b Free autocompleters on quit 2012-10-22 00:29:39 +01:00
James Booth
f419445d4d Renamed help autocompleter 2012-10-21 23:39:42 +01:00
James Booth
7a1c76fbb7 Added /help parameter autocomplete 2012-10-21 23:37:20 +01:00
James Booth
6bad38c2d5 Removed trailing whitespace from src and tests 2012-10-21 20:02:20 +01:00
James Booth
acb152d4f7 Added history option 2012-10-14 18:26:08 +01:00
James Booth
579201636e Showing history from current log in chat windows 2012-10-14 04:10:03 +01:00
James Booth
e486114e05 Now checks for exitence of contact before sending message 2012-10-04 23:18:48 +01:00
James Booth
9e23060986 Added argument to /who command to specify status 2012-10-04 22:48:41 +01:00
James Booth
dcf5e9ef16 Removed /ros command 2012-10-04 22:09:33 +01:00
James Booth
585d3e52f7 Made usage of cons_show vargs 2012-10-03 22:19:46 +01:00
James Booth
6aa1fe5513 cons_show now uses vargs 2012-10-03 22:06:04 +01:00
James Booth
a970b9ea86 Moved chat logging to profanity module
Removed jabber modules dependency on chat log
2012-10-02 22:00:05 +01:00
James Booth
ee8407f4a4 Tidy up jabber module, removed unused code, made local functions private 2012-10-02 21:37:55 +01:00
James Booth
f488200408 Made periodic message reminders a user option 2012-09-23 22:24:31 +01:00
James Booth
6d329343dc Shutdown now correctly handles connection 2012-09-23 19:26:07 +01:00
James Booth
3a8229bf6a Created shutdown init function to initiate and wait for shutdown 2012-09-11 22:55:59 +01:00
James Booth
1d44a8a345 Started work on closing stream on quit
For standards compliance
2012-09-11 01:30:48 +01:00
James Booth
fe519410b1 Tidied all includes 2012-08-26 01:50:50 +01:00
James Booth
2bbac1c811 Refactored log
Added shortcut functions for prof logging levels
2012-08-26 00:54:18 +01:00
James Booth
8b7975bdf3 Removed unused includes from command.c 2012-08-23 00:50:26 +01:00
James Booth
727dfcb491 Added comments to command.c 2012-08-23 00:44:14 +01:00
James Booth
33bb82b4aa Moved input processing to profanity.c 2012-08-23 00:41:22 +01:00
James Booth
b3f6023278 Refactored setting boolean preferences 2012-08-23 00:30:11 +01:00
James Booth
0f7f0a259d Command tidy 2012-08-22 23:57:34 +01:00
James Booth
4dbd8bbefa Added some logging and updated man page 2012-08-22 00:30:24 +01:00
James Booth
e698738745 Customisable logging levels 2012-08-19 03:43:18 +01:00
James Booth
84bd88ea92 Show basic help on startup 2012-08-16 01:39:19 +01:00
James Booth
d3f5daf11d Improved help on typing notifications 2012-08-16 00:56:27 +01:00
James Booth
8b1653f707 Added typing notifications and related preferences 2012-08-16 00:50:32 +01:00
James Booth
4e18d65977 Refactored command lookup 2012-08-15 00:42:38 +01:00
James Booth
254866e8b9 Added individual command help 2012-08-15 00:31:24 +01:00
James Booth
2f8a53fa35 Implemented help [command] 2012-08-14 23:22:12 +01:00
James Booth
7972a9a8b4 Added long help with dummy data 2012-08-14 22:50:38 +01:00
James Booth
9fd7b2b3c2 Command help now looked up
No longer need to write help strings in windows.c
Usage and help are part of the command structure
2012-08-14 22:06:27 +01:00
James Booth
4f4f780e60 Using usage from cmd struct 2012-08-12 01:39:51 +01:00
James Booth
e452968a46 Split command groups 2012-08-11 21:26:24 +01:00
James Booth
22102bdd37 Refactored commands
Now include usage and short help string
2012-08-11 00:18:03 +01:00
James Booth
6644fa953e Command list size now calculated
No longer have to specify size, and keep it up to date
when adding new commands
2012-08-10 23:18:02 +01:00
James Booth
2375b7ae52 Show tinyurl errors and usage in chat windows 2012-07-29 21:47:30 +01:00
James Booth
fe12352b57 Fixed bug in tinyurl 2012-07-29 21:32:04 +01:00
James Booth
a16a7171f2 Validate tinyurl 2012-07-29 01:12:39 +01:00
James Booth
45e2415b71 Fixed num commands 2012-07-29 00:33:10 +01:00
James Booth
ea5c1f0fa4 Added tiny command 2012-07-28 01:36:08 +01:00
James Booth
279737bada Function signatures across lines 2012-07-24 23:19:48 +01:00
James Booth
6b697054b6 Added chlog preference for chat logging 2012-07-22 23:07:34 +01:00
James Booth
5f60e46308 Added prefs command 2012-07-19 23:43:50 +01:00
James Booth
61600cb7b6 Set usernames to lowercase before logging in 2012-07-18 00:19:51 +01:00
James Booth
30ca6cac3d Added autobuild tools 2012-07-01 14:47:09 +01:00