about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Iterate logfiles until 100 are reachedMichael Vetter2019-06-071-6/+9
| | | | | | | | | | | | Fix https://github.com/profanity-im/profanity/issues/519
* | | Merge pull request #1124 from ↵Michael Vetter2019-06-082-16/+122
|\ \ \ | |/ / |/| | | | | | | | paulfariello/feature/remove_session_when_untrusting_omemo_device Remove OMEMO session when untrusting a fingerprint
| * | Remove OMEMO session when untrusting a fingerprintPaul Fariello2019-06-072-16/+122
| | | | | | | | | | | | | | | | | | We have to store known_devices in a long term fashion otherwise we might not be able to delete session if it is remove from device list server side.
* | | Merge pull request #1123 from profanity-im/fix/1093-already-started-messageMichael Vetter2019-06-071-40/+25
|\ \ \ | | | | | | | | Print omemo start related msgs into correct window
| * | | Refactor cmd_omemo_startMichael Vetter2019-06-071-38/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some code was duplicated/similar. The parts about using a chatwin while being started from another window (recipient provided) and being a chatwin were the same. Like this it should be easier to read and less code.
| * | | Print omemo start related msgs into correct windowMichael Vetter2019-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | Print them in the window of the contact. Not just the current window. Fix https://github.com/profanity-im/profanity/issues/1093
* | | | Merge pull request #1118 from profanity-im/fix/1117-omemo-autocompletion-crashMichael Vetter2019-06-071-26/+27
|\ \ \ \ | |/ / / |/| | | Only complete certain omemo commands if connected
| * | | Only complete certain omemo commands if connectedMichael Vetter2019-06-061-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the omemo commands depend on the roster being present. Several of those functions call `assert()` if that's not the case. Modify omemo autocompletion in such a way that only things that don't need the roster will be completed. Only works on first level. When typing `/omemo` it will still complete to `/omemo start` but not offer suggestions for that, but print a message that you need to be connected. Fix https://github.com/profanity-im/profanity/issues/1117
* | | | Merge pull request #1121 from profanity-im/feature/notify-plugin-failMichael Vetter2019-06-073-16/+31
|\ \ \ \ | |_|/ / |/| | | Improve plugin load/install failure message
| * | | Improve plugin load/install failure messageMichael Vetter2019-06-073-16/+31
| |/ / | | | | | | | | | | | | | | | In case Python or C plugins are disabled install/load failed silently. Notify the user that we can't load them because profanity was built without support for plugins.
* | | Merge pull request #1108 from optmzr/issue-1100Michael Vetter2019-06-067-139/+243
|\ \ \ | | | | | | | | Use travis matrix to test more systems (#1100)
| * | | Add Travis CI tests for Arch, Debian and OSX/macOSWilliam Wennerström2019-06-067-139/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Arch and Debian are run in Docker containers, as openSUSE Tumbleweed. + OSX/macOS doesn't use any containers. * Homebrew is used to fetch all the dependencies. * The dependencies are declared in the Brewfile.travis file. + The travis-build.sh script has been modified to check for the current OS and the different configure flags has been moved into an array that'll be looped through instead. The xscreensaver (for libXScrnSaver) flags has been removed for macOS as it only makes sense for systems running X11, which macOS doesn't (usually) do. + Some minor shellcheck fixes, too. Fixes: #1100
* | | | Add FUNDING.ymlgMichael Vetter2019-06-061-0/+12
| | | |
* | | | Merge pull request #1113 from profanity-im/fix/1112-autoconnectMichael Vetter2019-06-051-3/+11
|\ \ \ \ | |_|/ / |/| | | Check autoconnect set settings
| * | | Check for sane argument in autoconnect setMichael Vetter2019-06-051-4/+8
| | | | | | | | | | | | | | | | | | | | Check that user doesnt do `/autoconnect set `. Which would result in: `Account '(null)' does not exist`.
| * | | Check if valid account before setting autoconnectMichael Vetter2019-06-051-3/+7
|/ / / | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1112
* | | Merge pull request #1111 from profanity-im/feature/theme-omemo-charMichael Vetter2019-06-056-0/+13
|\ \ \ | | | | | | | | Add omemo.char to themes
| * | | Add omemo.char to themesMichael Vetter2019-06-055-0/+5
| | | |
| * | | Add omemo.char theme optionMichael Vetter2019-06-051-0/+8
|/ / / | | | | | | | | | Thanks to @kaffekanne for noticing this!
* | / Document statusbar.time theme featureMichael Vetter2019-06-0516-0/+16
| |/ |/| | | | | | | | | | | Users where under the impression that you can't colour the time displayed in the statusbar. Let's add it to the template, and also change all themes to use the same colour for the time as for the statusbar text.
* | Merge pull request #1109 from profanity-im/fix/1083Michael Vetter2019-06-053-28/+47
|\ \ | | | | | | Fix SIGABRT on lost connection
| * | statusbar: check if roster existsMichael Vetter2019-06-043-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We destory the roster in ev_disconnect_cleanup(). Adding a function to test if the roster has been destroyed and testing for it in the statusbar. So now when the connection is lost 'Lost connection' is printed in all open windows. We can then reconnect with `/connect accountname`. Should fix https://github.com/profanity-im/profanity/issues/1083
| * | statusbar: reduce duplicate codeMichael Vetter2019-06-041-32/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | status_bar_new() and status_bar_active() are almost identical. Let's use one helper function to not duplicate code. I thought about renaming both functions into one and adding another parameter but didn't come up with a good name for the function that clearly describes what it does. So staying with current names + helper functions.
| * | Determine chat window names beforehandMichael Vetter2019-06-041-13/+44
| |/ | | | | | | | | | | | | | | | | Save the name for displaying the windows in the statusbar inside the tab object. So far we calculated them repeatedly and this created issues when we lost the connection. Regards https://github.com/profanity-im/profanity/issues/1083
* / Add release dates to changelogMichael Vetter2019-06-051-5/+5
|/
* Merge pull request #1106 from profanity-im/saved-accountMichael Vetter2019-06-031-28/+7
|\ | | | | Don't clear saved account data in session_disconnect()
| * Don't clear saved account data in session_disconnect()Dmitry Podgorny2019-06-031-28/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If connection loss occurs, it calls session_disconnect() eventually. This function clears saved account data which is required for reconnection. Therefore, when reconnect timer expires, we get errors: 02/06/2019 04:53:42: stderr: ERR: (profanity:17115): GLib-CRITICAL **: 04:53:42.305: g_key_file_has_group: assertion 'group_name != NULL' failed 02/06/2019 04:53:43: prof: ERR: Unable to reconnect, account no longer exists: (null) To solve it, don't clear the saved data in session_disconnect(). It will be cleared properly on connection loss if reconnect timer is not configured. But won't be cleared with /disconnect command. So, after /disconnect the data will live in memory until the next /connect. Also, remove some copy-paste in connection loss path.
* | Merge pull request #1105 from profanity-im/autoping-timer-cancelMichael Vetter2019-06-034-8/+15
|\ \ | |/ |/| Cancel autoping timer on disconnect or connection loss
| * Cancel autoping timer on disconnect or connection lossDmitry Podgorny2019-06-034-8/+15
|/ | | | | | | | | If Profanity is disconnected in any way before ping response is received, the autoping timer will expire after the next connection is established. As result, user will be disconnected immediately. Cancel autoping timer in ev_disconnect_cleanup(), so it is done for all kind of disconnections.
* Merge pull request #1104 from profanity-im/fix-1103Michael Vetter2019-06-031-11/+28
|\ | | | | xmpp/connection: fix #1103
| * xmpp/connection: fix #1103Dmitry Podgorny2019-06-011-11/+28
|/ | | | | | | | | | | | When connection is lost, profanity tries to disconnect what leads to an infinite loop. The loop occurs, because connection_disconnet() runs xmpp_run_once() separately and waits for XMPP_CONN_DISCONNECT event. But it doesn't happen, because the connection object is disconnected. As solution, don't disconnect after XMPP_CONN_DISCONNECT is received. Also, don't free libstrophe objects while the event loops executes, because the event loop continues using objects after callbacks quit.
* Close windows on connection loss not general disc.Michael Vetter2019-05-272-1/+1
| | | | | | | | | | Call `ui_close_all_wins();` only if we disconnect on purpose not when connection is lost. Otherwise users might miss messages. This partly reverts 6ac73db876c83c7068c4795b19c09ea59eb18a40. Regards https://github.com/profanity-im/profanity/issues/1083
* Merge pull request #1092 from frnky/remove_mblenMichael Vetter2019-05-231-5/+2
|\ | | | | Don't call mblen() to not depend on locale
| * Don't call mblen() to not depend on localeFrank Zschockelt2019-05-221-5/+2
| | | | | | | | | | | | | | | | | | | | mblen will fail with return code -1 if the locale used by the unit tests isn't available on the machine. This will lead to an off by one error in some tests where the needle is at the end of the haystack. Since prof_occurrences expect null-terminated strings, the character after the needle can simply be found by incrementing the address of the found needle with strlen(needle).
* | Merge pull request #1102 from paulfariello/fix/malformed-omemo-messageMichael Vetter2019-05-231-4/+8
|\ \ | |/ |/| Correctly handle malformed OMEMO messages
| * Correctly handle malformed OMEMO messagesPaul Fariello2019-05-231-4/+8
|/ | | | Fix #1101
* Merge pull request #1098 from optmzr/fix-omemo-gen-messageMichael Vetter2019-05-221-0/+1
|\ | | | | | | | | Force UI update before generating OMEMO crypto materials The message wouldn't show up before the generation of OMEMO crypto materials started.
| * Force UI update before generating OMEMO crypto materialsWilliam Wennerström2019-05-211-0/+1
| |
* | Create seperate function for disconnect cleanupMichael Vetter2019-05-195-30/+115
| | | | | | | | | | Duplicate code in client_events.c and server_events.c. Let's have events/common.c and a function containing that code.
* | Merge pull request #1091 from frnky/fix_tests_on_32bitMichael Vetter2019-05-175-25/+25
|\ \ | |/ |/| Fix unit tests on 32-bit architectures
| * Use mock_type() for casting mock()Frank Zschockelt2019-05-084-13/+13
| |
| * Use mock_ptr_type() to silence compiler warningsFrank Zschockelt2019-05-084-12/+12
|/ | | | | | Unit tests on 32-bit architectures were failing due to "cast to pointer from integer of different size" warnings. mock_ptr_type silences those by first casting to uintptr_t.
* Fix ifdef guard (should have been OMEMO)Michael Vetter2019-05-061-1/+1
|
* Merge pull request #1090 from jubalh/fix/connection-loss-1089Michael Vetter2019-05-061-0/+5
|\ | | | | Reset things on connection loss
| * Reset things on connection lossMichael Vetter2019-05-061-0/+5
| | | | | | | | | | Remove the windows, clear tls certs, clean omemo. Regards https://github.com/profanity-im/profanity/issues/1089
* | Merge pull request #1084 from jubalh/occupants-charMichael Vetter2019-05-039-3/+94
|\ \ | |/ |/| Add occupants char
| * Add occupants charMichael Vetter2019-05-029-3/+94
| | | | | | | | | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* | Update travis URLMichael Vetter2019-05-031-1/+1
| |
* | Update profanity repo URLMichael Vetter2019-05-036-9/+9
| | | | | | | | Move from github.com/boothj5/* to github.com/profanity-im/*
* | Update tests with new URLMichael Vetter2019-05-037-40/+40
| | | | | | | | https://github.com/profanity-im/profanity/issues/1085
='/akkartik/mu/commit/html/071print.mu.html?h=main&id=f5465e1220d73e237c51897b7d1211ec53b0dc04'>f5465e12 ^
65361948 ^
f5465e12 ^


4690ce81 ^
f5465e12 ^
672e3e50 ^
9570363a ^

d009e158 ^
f5465e12 ^
65361948 ^
f5465e12 ^



65361948 ^
f5465e12 ^

65361948 ^
f5465e12 ^

9570363a ^
f5465e12 ^




4690ce81 ^
f5465e12 ^
9570363a ^
f5465e12 ^



672e3e50 ^
f5465e12 ^

9570363a ^
f5465e12 ^


4690ce81 ^
f5465e12 ^
672e3e50 ^
f5465e12 ^
65361948 ^
672e3e50 ^
f5465e12 ^
65361948 ^
d009e158 ^




4bbd3ded ^

f5465e12 ^



4bbd3ded ^


db1f56c8 ^
4bbd3ded ^
d009e158 ^




65361948 ^

f5465e12 ^



65361948 ^

672e3e50 ^
f5465e12 ^
65361948 ^
d009e158 ^







dbe12410 ^

f5465e12 ^




dbe12410 ^


f5465e12 ^
dbe12410 ^
d009e158 ^









65361948 ^

f5465e12 ^




65361948 ^


db1f56c8 ^
dbe12410 ^
d009e158 ^









dbe12410 ^

f5465e12 ^






dbe12410 ^


f5465e12 ^
65361948 ^
d009e158 ^








65361948 ^

f5465e12 ^





65361948 ^


f5465e12 ^
dbe12410 ^
d009e158 ^






dbe12410 ^

f5465e12 ^

dbe12410 ^


db1f56c8 ^
dbe12410 ^
d009e158 ^















dbe12410 ^

f5465e12 ^

d009e158 ^









dbe12410 ^


4690ce81 ^
f5465e12 ^
db1f56c8 ^
d009e158 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^


f5465e12 ^
672e3e50 ^
f5465e12 ^

9570363a ^
f5465e12 ^
d009e158 ^
f5465e12 ^

672e3e50 ^
f5465e12 ^
4690ce81 ^
f5465e12 ^
672e3e50 ^

65361948 ^
672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^


4690ce81 ^
f5465e12 ^
9570363a ^
65361948 ^
672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^

f5465e12 ^
db1f56c8 ^
f5465e12 ^
4690ce81 ^
f5465e12 ^
672e3e50 ^
f5465e12 ^
65361948 ^
672e3e50 ^
f5465e12 ^
65361948 ^
d009e158 ^
672e3e50 ^
d009e158 ^

672e3e50 ^
d009e158 ^
672e3e50 ^
d009e158 ^


65361948 ^
672e3e50 ^
65361948 ^
d009e158 ^












65361948 ^

672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
eaeb9552 ^
db1f56c8 ^

f5465e12 ^




4690ce81 ^
f5465e12 ^
672e3e50 ^

65361948 ^
672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
eaeb9552 ^
db1f56c8 ^
f5465e12 ^



4690ce81 ^
f5465e12 ^
672e3e50 ^

65361948 ^
672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
eaeb9552 ^
db1f56c8 ^

f5465e12 ^




4690ce81 ^
f5465e12 ^
672e3e50 ^

65361948 ^
672e3e50 ^
4690ce81 ^
f5465e12 ^
db1f56c8 ^
672e3e50 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
eaeb9552 ^
db1f56c8 ^
f5465e12 ^



4690ce81 ^
f5465e12 ^
672e3e50 ^

65361948 ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^

f5465e12 ^
db1f56c8 ^
65361948 ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
9570363a ^

65361948 ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
e8b1d3ff ^
f5465e12 ^
db1f56c8 ^

4690ce81 ^
f5465e12 ^
e8b1d3ff ^
db1f56c8 ^
e8b1d3ff ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
e8b1d3ff ^
f5465e12 ^
db1f56c8 ^

4690ce81 ^
f5465e12 ^
e8b1d3ff ^
db1f56c8 ^
e8b1d3ff ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
62a52ffb ^
f5465e12 ^

4690ce81 ^
f5465e12 ^
62a52ffb ^

62a52ffb ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
62a52ffb ^
f5465e12 ^

4690ce81 ^
f5465e12 ^
62a52ffb ^

62a52ffb ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
62a52ffb ^
90560d71 ^
f5465e12 ^

4690ce81 ^
f5465e12 ^
62a52ffb ^

62a52ffb ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
62a52ffb ^
90560d71 ^
f5465e12 ^

4690ce81 ^
f5465e12 ^
62a52ffb ^

62a52ffb ^

4690ce81 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^

e8b1d3ff ^
f5465e12 ^




d5d908dd ^
f5465e12 ^





9570363a ^
f5465e12 ^
9570363a ^
db1f56c8 ^
f5465e12 ^


65361948 ^

db1f56c8 ^
dbe12410 ^
d009e158 ^




dbe12410 ^

f5465e12 ^







dbe12410 ^


4690ce81 ^
f5465e12 ^
d009e158 ^
f5465e12 ^

e8b1d3ff ^
f5465e12 ^




d5d908dd ^
f5465e12 ^


65361948 ^
d009e158 ^
db1f56c8 ^
65361948 ^
d009e158 ^

4690ce81 ^
d009e158 ^

















4690ce81 ^
d009e158 ^
















672e3e50 ^


a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759