James Booth
460a42c7c9
Moved handle_software_version_result to server_events
2014-01-05 21:11:09 +00:00
James Booth
42fd1fb13e
Moved handle_lost_connection and handle_failed_login to server_events
2014-01-05 21:04:30 +00:00
James Booth
da03617e8b
Moved handle_login_account_success to server_events
2014-01-05 20:58:19 +00:00
James Booth
87cdbe015a
Added server_events.c
2014-01-05 20:52:45 +00:00
James Booth
2470f642c7
Merge branch 'master' into otr
...
Conflicts:
src/command/command.c
2013-12-15 17:19:01 +00:00
James Booth
2490f5b417
Seperated command functions into module
2013-12-15 16:10:32 +00:00
James Booth
107fdd355e
Added simple mock test, refactored roster
2013-12-14 15:34:17 +00:00
James Booth
8c97658b8d
Merge branch 'master' into refactor2
...
Conflicts:
src/ui/core.c
2013-11-11 20:51:35 +00:00
James Booth
d9395daa2f
Added /otr command
2013-11-08 00:17:27 +00:00
James Booth
bdcc70f36d
Load keys and fingerprints for account on connect
2013-11-08 00:17:02 +00:00
James Booth
bd1c139429
Added libotr
2013-11-08 00:17:02 +00:00
James Booth
2b0108e6cc
Allow "account" setting in [connection] to autconnect the account
...
closes #251
2013-11-07 23:04:12 +00:00
James Booth
1248f49cfa
Merge remote-tracking branch 'tsenart/connect-on-startup'
2013-11-07 21:57:41 +00:00
Tomás Senart
ac7ec7f2d1
Connect to an account on start-up
...
This commit enables connecting to an account on startup which enables
the use case of having different pre-configured scripts which start
different profanity processes for different accounts. This only makes
sense in the light of not supporting many accounts connected per
process.
2013-10-14 21:22:46 +02:00
James Booth
acf1afe025
Moved idle chat state handling out of ui module
2013-10-07 00:51:00 +01:00
James Booth
1d3256ffc7
PREF_STATUSES, moved checks to profanity module
...
Removed checks from muc presence, and when contact is offline on message
2013-10-06 23:46:35 +01:00
James Booth
3dffc1d9ff
Moved muc error handling to profanity.c
2013-10-06 00:26:03 +01:00
James Booth
710c49b6b8
Moved UI error handler code to ui/core
2013-10-06 00:05:23 +01:00
James Booth
ab5eadc559
Fix nickname change conflicts
...
fixes #242
2013-09-22 14:47:17 +01:00
James Booth
d70245c887
Fixe rejoining room after nickname conflict
...
fixes #241
2013-09-22 01:26:40 +01:00
James Booth
ee8ff948bf
Use git revision in development strings
2013-09-17 01:28:35 +01:00
Dmitry Podgorny
6f498d1f69
refactored mkdir_recursive
...
Now this function returns result of operation. TRUE is success.
2013-08-03 14:14:30 +03:00
James Booth
d5e9ca649d
Show messages on /group add and /group remove
...
closes #189
closes #190
2013-06-23 17:38:30 +01:00
James Booth
dace47e5d3
Show message when removing contact from group when not in group
2013-06-23 16:35:13 +01:00
James Booth
265fff8f40
Show message when contact already in group
2013-06-23 16:29:42 +01:00
James Booth
0e5d277c14
Added message in console on /roster remove
2013-06-02 00:24:22 +01:00
James Booth
65c09db19e
Added message in console on /roster add
2013-06-02 00:20:22 +01:00
James Booth
dcd8dcda87
Fixed autoaway
2013-05-30 21:11:55 +01:00
James Booth
7b20d8d4f4
Refactored roster push handling
2013-05-21 22:00:42 +01:00
James Booth
c1ee75da40
Removed contact_list, moved roster logic to xmpp/roster module
2013-05-06 23:04:46 +01:00
James Booth
05f2d29396
Renamed contact_list_ functions to roster_
2013-05-06 22:32:58 +01:00
James Booth
78ff58cf77
Fixed error when losing connection and segfaulting on notify_remind()
2013-05-06 00:33:33 +01:00
James Booth
90ac69beb3
Added /duck command to perform searches using duckduckgo chat bot
2013-05-05 02:31:04 +01:00
James Booth
8c5866ff52
Added groupchat logs
...
closes #168
2013-05-05 00:16:10 +01:00
James Booth
441422ddc8
Added desktop notification option for subscription requests
...
closes #166
2013-04-27 23:46:49 +01:00
James Booth
e02ab52a4e
Only set autoaway when status is "online" or "chat"
...
fixes #122
2013-04-27 22:39:51 +01:00
James Booth
17757c86e6
Support for XEP-0249 Direct MUC Invitations
...
Commands /invite, /invites, /decline and /join
2013-04-24 23:50:47 +01:00
James Booth
f63f68630b
Added notifier module
2013-04-21 20:17:06 +01:00
James Booth
1046a00405
Renamed remaining win_ functions
2013-04-21 19:44:31 +01:00
James Booth
954c9ededc
Renamed win_current_get_recipient -> ui_current_win_recipient
2013-04-21 18:47:37 +01:00
James Booth
bf740d9997
Replace window type functions with single function returning type
2013-04-21 18:40:22 +01:00
James Booth
b2c08cfc43
Renamed cons_bad_show -> cons_show_error
2013-04-21 02:49:23 +01:00
James Booth
b6095ca955
Show message in console when receiving chat room invites
2013-03-24 21:46:00 +00:00
James Booth
e2bc9bde74
Implemented output for /disco info
2013-03-14 23:41:36 +00:00
James Booth
7bd7c15994
Added output for /disco items
2013-03-14 22:18:21 +00:00
James Booth
681c3b6be2
Show name as well as jid for room list
2013-03-14 22:03:38 +00:00
James Booth
5b6de3340c
Page off after /rooms command
2013-03-14 19:54:59 +00:00
James Booth
b960b76034
Added basic /rooms command to get chat room list
2013-03-13 23:38:26 +00:00
James Booth
aeb0bfa13c
Init and shutdown of libstrophe moved, free resources before creating
2013-02-27 23:14:41 +00:00
James Booth
e955df8894
Colour title on /caps and /software output
2013-02-17 16:39:37 +00:00
James Booth
91289b8d8d
Fixed autoaway
2013-02-17 14:15:46 +00:00
James Booth
50b7edbfb5
Show fulljid when contact becomes unavailable
2013-02-17 02:23:36 +00:00
James Booth
bced3d4b36
Added autocomplete for /software command
2013-02-17 02:10:56 +00:00
James Booth
a84e4adee7
Show all resources ordered by priority with /info command
2013-02-17 00:05:57 +00:00
James Booth
b5e06a079c
Simple default resource hanlding on presence
2013-02-14 22:06:25 +00:00
James Booth
e922568770
Added resource_presence_t and contact_presence_t
2013-02-10 17:13:19 +00:00
James Booth
591f8a8dbf
Renamed jabber_presence_t->presence_t
2013-02-10 11:31:31 +00:00
James Booth
3fa9ecb9d1
Show priority on autoaway messages
2013-02-05 23:29:05 +00:00
James Booth
3c9155be2c
Losing connection shows 'offline' in ui
2013-02-03 23:06:06 +00:00
James Booth
9bc70e29e8
Removed jabber_restart function
2013-02-03 22:56:23 +00:00
James Booth
2ee0c4d328
Moved caps_init() out of xmpp.h
2013-02-03 22:46:32 +00:00
James Booth
069bdbc331
Refactored string preferences
2013-02-03 03:24:13 +00:00
James Booth
ca26452af6
Refactored getting boolean preferences
2013-02-03 02:35:04 +00:00
James Booth
c90c83f7e1
Removed log function to log.c
2013-02-03 00:27:43 +00:00
James Booth
7d6ce4da02
Added resize check to ui module
2013-02-02 23:52:47 +00:00
James Booth
b762f2c670
Tidied directory creation
2013-02-02 22:51:14 +00:00
James Booth
3d0e0d7ea4
Removed files.c
2013-02-02 22:33:05 +00:00
James Booth
9d34c41227
Added config dir to source
2013-02-02 21:59:29 +00:00
James Booth
740e5b4228
Added command and tools subdirs to source
2013-02-02 21:43:59 +00:00
James Booth
fc5bfb7d33
Tidied #include's
2013-02-02 20:55:58 +00:00
James Booth
ed3261a238
Added ui subdir to source
2013-02-02 19:57:46 +00:00
James Booth
1d3739bb79
Added xmpp subdir to source
2013-02-02 19:47:41 +00:00
James Booth
06abe13f19
Show current presence when logging in
...
Also show correct presence in title bar upon login
2013-01-31 00:40:27 +00:00
James Booth
957bea19e4
Fixed chat logging
...
fixes #147
2013-01-29 23:01:15 +00:00
James Booth
0f01f30b9c
Moved message functions to xmpp_message.c
2013-01-29 00:37:50 +00:00
James Booth
bfe1d76e5f
Moved functions to xmpp_presence
2013-01-28 22:55:26 +00:00
James Booth
bf1cf04447
Joined log and chat_log modules
2013-01-28 20:16:18 +00:00
James Booth
c72d7ad6a6
Renamed history modules
2013-01-28 01:35:11 +00:00
James Booth
80e62cfa5f
Renamed history.c -> command_history.c
...
Included in command.h
2013-01-28 01:23:37 +00:00
James Booth
070d2ced4f
Renamed capabilities.c -> xmpp_caps.c
2013-01-28 00:57:22 +00:00
James Booth
7dcb85c701
Renamed jabber.h -> xmpp.h
2013-01-28 00:32:57 +00:00
James Booth
dba48f18b5
Added development string to log
2013-01-27 21:32:10 +00:00
James Booth
972ca34d4b
Refactored connecting, and reconnecting
...
The user either logs in with an account, in which case its name, and the
password is kept for reconnects. Or the user can login with a jid (and
server) which does not currently exist as a local account. On success
an account is created, with the jid as the name.
2013-01-27 20:23:42 +00:00
James Booth
5cca57f6fb
Renamed account_add_login -> account_add, added comments
2013-01-27 18:10:30 +00:00
James Booth
b4ea35d40a
Added client to /info command in chat rooms
2013-01-20 04:33:31 +00:00
James Booth
22589e8798
Initialise and free capabilities
2013-01-20 00:35:40 +00:00
James Booth
79c92656f9
Added retrieval of caps string from presence
2013-01-19 23:52:50 +00:00
James Booth
af6779401a
Show message in chat room when nickname conflict
2013-01-16 01:00:06 +00:00
James Booth
02a71e2510
Handle /who command in chat rooms
2013-01-15 23:17:07 +00:00
James Booth
84ea4a77c9
Disabled logging for chat rooms and private chat
2013-01-15 20:50:11 +00:00
James Booth
bfd7362e2a
Renamed muc functions
2013-01-12 01:34:09 +00:00
James Booth
dad01d8f84
Renamed room_chat module to muc
2013-01-12 01:01:39 +00:00
James Booth
d29c7fd878
Updated copyright
2013-01-11 02:05:29 +00:00
James Booth
89967905db
Autocomplete: added free function
...
Fixed tests
2013-01-11 00:17:18 +00:00
James Booth
dae4f1bb70
Added _inp_win_refresh() macro, renamed and moved some functions
2013-01-06 01:06:12 +00:00
James Booth
439e6486db
Handle wide chars on input
2013-01-03 00:16:39 +00:00
James Booth
d28930eaf4
Include ncursesw, set locale
2013-01-02 20:27:37 +00:00
James Booth
803eacc488
Fixed name clashes with windows.h
2012-12-11 23:58:54 +00:00
James Booth
ce6f227651
Handle logins using accounts
2012-12-09 22:14:38 +00:00
James Booth
8e90f7a414
Handle idle time from contacts
2012-12-09 03:07:33 +00:00
James Booth
4c243722c6
Renamed functions in theme
2012-12-08 22:34:16 +00:00
James Booth
731dabd712
Added server property to accounts
2012-12-07 00:10:00 +00:00
James Booth
6826a66f85
Moved logins to accounts module
2012-12-02 01:29:42 +00:00
James Booth
30e4786180
Create logs dir for main log
2012-12-02 01:01:27 +00:00
James Booth
79a2633fa6
Removed development code
2012-12-01 19:05:28 +00:00
James Booth
1029c43002
Use profanity input for idle time when libxss not availalbe
2012-12-01 18:39:34 +00:00
James Booth
fae848ea64
Implemented /autoaway mode idle
2012-12-01 17:46:25 +00:00
James Booth
f7d0bcba4c
More useful console message on auto away
2012-12-01 00:23:47 +00:00
James Booth
72d8a82f51
Send away presence and message for /autoaway
2012-12-01 00:19:45 +00:00
James Booth
48c4d6dc8f
Send away and message when idle
2012-11-30 22:05:52 +00:00
James Booth
ef40a33ab4
Use only one measure for idle
2012-11-30 21:59:31 +00:00
James Booth
020e516acf
Simple output of idle/away
2012-11-30 21:26:28 +00:00
James Booth
0756a9cec6
Implemented "/sub sent" to show outstanding sent subscription requests
2012-11-28 01:36:04 +00:00
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
4b73f3d7f9
Profanity files now use %XDG_CONFIG_HOME and %XDG_DATA_HOME
2012-11-25 21:40:49 +00:00
James Booth
e8b2b7196c
Separated colours from main preferences
2012-11-21 21:24:10 +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
b3e1d473a2
Handle room broadcasts
2012-11-19 22:15:53 +00:00
James Booth
645d1b74d5
Handle room member presence
2012-11-19 00:26:31 +00:00
James Booth
bd3f1d1575
Show message when own nickname changed in chat rooms
2012-11-18 22:49:01 +00:00
James Booth
49676e3fae
Handle nick changes from other users
2012-11-18 21:46:58 +00:00
James Booth
a574f7ff40
Set correct window type on private messages
2012-11-14 00:04:08 +00:00
James Booth
b14aab4ade
Merge pull request #79 from pasis/dev
...
ignore SIGPIPE
2012-11-12 14:03:12 -08:00
Dmitry Podgorny
e81dc3b509
ignore SIGPIPE
...
Applications running OpenSSL over network connections may crash if
SIGPIPE is not ignored.
[http://svn.apache.org/repos/asf/thrift/trunk/lib/cpp/README.SSL ]
2012-11-12 23:15:37 +02:00
James Booth
14fa5ce5d8
Clear contact list when connection lost
2012-11-12 20:30:15 +00:00
James Booth
2f1fa0d97a
Merge pull request #73 from pasis/rotate
...
introduce initial log rotate support
2012-11-11 14:56:04 -08:00
Dmitry Podgorny
b4fd3b1b20
fix spacing
2012-11-11 23:44:18 +02:00
James Booth
e64889b6fc
Added win_page_off to subscriptions to scroll window
2012-11-11 19:45:49 +00:00
Dmitry Podgorny
c3b0e80432
add subscription support
2012-11-11 14:00:21 +02:00
James Booth
be2fb1c809
Handle subject from room
2012-11-10 03:30:27 +00:00
James Booth
7799623b4a
Show error text if received
2012-11-10 02:28:38 +00:00
James Booth
a5082a54bd
Using vargs in cons_bad_show
2012-11-10 01:39:42 +00:00
James Booth
81f9292948
Tidy up leaving room
2012-11-10 01:17:16 +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
181669a8cb
Basic chat room handling of presence
2012-11-08 00:05:32 +00:00
James Booth
a676c50b68
windows: format room roster
2012-11-07 22:46:20 +00:00
James Booth
54e591fea3
jabber: wait until full room roster received before showing
2012-11-07 22:24:50 +00:00
James Booth
4493f55530
Removed jabber.c dependency on ui.h
2012-11-06 22:40:38 +00:00
James Booth
e45e6c46b7
Show message when other user <gone/>
2012-11-01 01:21:00 +00:00
James Booth
d339004f55
Merge branch 'master' into chatstates
...
Conflicts:
Makefile.am
2012-10-30 01:38:08 +00:00
James Booth
a0eda4207c
Split contact add and update presence
2012-10-29 21:44:33 +00:00
James Booth
34238ad6a4
Handle presence after roster request
2012-10-28 23:27:56 +00:00
James Booth
d13794bf60
Load roster before sending presence
2012-10-28 20:52:30 +00:00
James Booth
44f64bea64
Merge branch 'master' into chatstates
2012-10-28 00:37:01 +01:00
James Booth
c71259c322
Unified desktop notification preferences
2012-10-27 22:05:08 +01:00
James Booth
d4fb72f6c9
Merge branch 'master' into chatstates
...
Conflicts:
docs/profanity.1
2012-10-27 19:34:26 +01:00
James Booth
847850742c
Refactored disconnect
2012-10-27 18:26:57 +01:00
James Booth
d658915740
Renamed shutdown function
2012-10-27 18:15:26 +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
James Booth
a5e4e52567
Merge branch 'master' into type_out
2012-10-22 22:21:55 +01:00
James Booth
3f8813bb1b
Free autocompleters on quit
2012-10-22 00:29:39 +01:00
James Booth
e0732ad0a5
Renamed other autocompleters
2012-10-21 23:46:30 +01:00
James Booth
6bad38c2d5
Removed trailing whitespace from src and tests
2012-10-21 20:02:20 +01:00
Dmitry Podgorny
bfc9e9a72e
handle error messages from server
2012-10-18 18:18:44 +03:00
James Booth
68c6fe4803
Moved jabber_free_resources call
2012-10-16 23:38:27 +01:00
James Booth
2f66feef8a
Merge branch 'master' of https://github.com/pasis/profanity
2012-10-16 23:34:38 +01:00
James Booth
d2aeca9bb4
Attempted fix at causing segfault by freeing connection
2012-10-16 23:29:58 +01:00
Dmitry Podgorny
6900d52d80
jabber: fix crash when disconnection timeout is reached
2012-10-17 00:52:19 +03:00
James Booth
5d49993151
Merge branch 'master' into type_out
2012-10-14 17:52:35 +01:00
James Booth
579201636e
Showing history from current log in chat windows
2012-10-14 04:10:03 +01:00
James Booth
0139fb8b10
Merge branch 'master' into dev
2012-10-06 00:35:56 +01:00
James Booth
8ecd93049f
Set no blocking delay to 100ms
2012-10-05 00:42:02 +01:00
James Booth
dcf5e9ef16
Removed /ros command
2012-10-04 22:09:33 +01:00
James Booth
65022b3c2f
Users added to contact list when no precense notification
...
The user is added from the roster
2012-10-04 21:31:09 +01:00
James Booth
579594a8bf
Offline contacts presence notifications now in contact list
...
Can send messages to offline contacts
2012-10-04 21:25:19 +01:00
James Booth
f8de28232e
Started work on chat session, and chat states
2012-10-03 23:47:10 +01:00
James Booth
585d3e52f7
Made usage of cons_show vargs
2012-10-03 22:19:46 +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
b9ab5d9f33
Refactored profanity module
...
Now has simple run method and event handlers
2012-10-02 01:24:48 +01:00
James Booth
28b1723876
Moved roster output handling to profanity module
2012-10-02 01:04:53 +01:00
James Booth
02224ea7bb
Added status handler code to profanity module
2012-10-02 00:03:53 +01:00
James Booth
310d712d42
Moved login attempt handler code to profanity module
2012-10-01 23:53:26 +01:00
James Booth
9f00ef14d2
Moved incoming message code to profanity module
2012-10-01 23:41:36 +01:00
James Booth
f488200408
Made periodic message reminders a user option
2012-09-23 22:24:31 +01:00
James Booth
294ea2d1be
Now sends desktop notification periodically to remind of unread messages
2012-09-23 20:52:47 +01:00
James Booth
d888a378d3
Only remind when period != 0 seconds and more than 0 messages
2012-09-23 20:38:26 +01:00
James Booth
78e4524de0
Added logging of unread messages to test
2012-09-23 20:30:32 +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
6f2870ed7d
Moved create_config_dir function to profanity.c
2012-08-26 18:01:44 +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
0fe70ce7d3
Merge common and util
2012-08-23 01:08:06 +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
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
74a88ad566
Basic log levels settings
2012-08-19 02:44:46 +01:00
James Booth
cd3a0ddeb8
Removed tinyurl_init
2012-08-10 23:07:49 +01:00
James Booth
0a42be57a3
Cleaning up memory allocated by ncurses pads
2012-07-31 23:01:15 +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
83ef1d562c
Added simple chat log
2012-07-22 20:53:55 +01:00
James Booth
929be7f1ac
Log location ~/.profanity/log/profanity.log
2012-07-19 22:38:46 +01:00