about summary refs log tree commit diff stats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Fix python executed during configurej.r2022-02-182-5/+5
| | | | | | | | | | | | | | | Previously it relied on AX_PYTHON_DEVEL, which in turn executes python-config to get the build flags. However this does not work while cross compiling because we can't execute the python-config build for the target platform. To circumvent this problem the python build flags are now queried via pkgconfig, which has the drawback of not having some extra build flags, but they do not seem to be needed. I tested this patch with the termux build system and it build without their existing hack of injecting python after the configure step. I also tested non cross compile build on Arch Linux and it also still works. Fixes #851
* python_api.c: enlarge `c_arguments` array to avoid OOB writeSergei Trofimovich2021-11-261-1/+1
| | | | | | | | | Code below explicitly refers past `args_len`th element: c_arguments[args_len][0] = NULL; c_arguments[args_len][1] = NULL; Let's always allocate space for `NULL`. Noticed by Steffen Jaeckel.
* src/plugins/python_api.c: drop redundant NULL pointer checkSergei Trofimovich2021-11-181-1/+1
| | | | | | | | | | | | gcc-12 detects redundant check against array of arrays as: src/plugins/python_api.c: In function ‘python_api_register_command’: src/plugins/python_api.c:199:31: error: the comparison will always evaluate as ‘true’ for the address of ‘c_arguments’ will never be NULL [-Werror=address] 199 | while (c_arguments[i] != NULL && c_arguments[i][0] != NULL) { | ^~ src/plugins/python_api.c:161:15: note: ‘c_arguments’ declared here 161 | char* c_arguments[args_len == 0 ? 0 : args_len + 1][2]; | ^~~~~~~~~~~
* src/plugins/callbacks.c: drop redundant NULL pointer checkSergei Trofimovich2021-11-181-1/+1
| | | | | | | | | | | | | | | gcc-12 detects redundant check against array of arrays as: src/plugins/callbacks.c: In function ‘_free_command_help’: src/plugins/callbacks.c:85:26: error: the comparison will always evaluate as ‘true’ for the address of ‘args’ will never be NULL [-Werror=address] 85 | while (help->args[i] != NULL && help->args[i][0] != NULL) { | ^~ In file included from ./src/ui/ui.h:44, from ./src/command/cmd_defs.h:42, from src/plugins/callbacks.c:41: ./src/command/cmd_funcs.h:48:12: note: ‘args’ declared here 48 | gchar* args[128][2]; | ^~~~
* Add plugin get_barejid_from_roster functionDustin Lagoy2021-04-296-0/+38
|
* Change nick to name in api to match conventionDustin Lagoy2021-04-286-12/+12
| | | | | Change all instances of *get_nick_from_roster to *get_name_from_roster to match the convention of names in the roster itself.
* Add plugin prof_get_nick_from_roster functionDustin Lagoy2021-04-286-0/+40
|
* Add config.h in files were it was missingMichael Vetter2021-03-269-0/+18
| | | | Related to https://github.com/profanity-im/profanity/issues/1512
* Fix various typosMichael Vetter2020-12-101-2/+2
|
* Declare counter var inside loopMichael Vetter2020-11-092-3/+2
| | | | We require c99/gnu99 anyways.
* Dont hilight console once all messages have been readMichael Vetter2020-07-091-1/+1
| | | | | | | | | | | | | | | | If we receive a message we get: << room message: eagle@conference.anoxinon.me (win 2) Same for private chats and regular chats. And several other kinds of notifications. If we only receive notifications from a chat window it would be nice to also clear the hilight on the console window since we already catched up by reading the actual message in the chat window. Probably not the best description :-) I hope you get it.. Regards https://github.com/profanity-im/profanity/issues/1399
* Apply coding styleMichael Vetter2020-07-0722-1487/+1537
|
* Revert "Apply coding style"Michael Vetter2020-07-0722-1576/+1526
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-0722-1526/+1576
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Fix reading/writing linked filesMichael Vetter2020-06-131-1/+1
| | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* Add to_jid field to ProfMessage structMichael Vetter2020-04-111-1/+1
| | | | | Is usefult in many cases if we want cleaner code. Hope this edit didn't break anything though ;-)
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-12/+12
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Add vim modelineMichael Vetter2019-11-1324-0/+24
|
* plugins/python: fix double _XOPEN_SOURCE definitionDmitry Podgorny2019-10-152-0/+2
| | | | | | | | | | | | | ncursesw defines _XOPEN_SOURCE macro via command-line. In particular, it is defined in ncursesw.pc and extracted via pkg-config. From other side, Python defines the same macro unconditionally in pyconfig.h. Python-3.x defines the macro with value different than ncursesw does. In turn, this causes a warning that the macro is redefined. And warnings are treated as errors. Since both entities define the mecro unconditionally, we can't simply reorder headers as Python developers suggest. So, undefine the macro just before the <Python.h> to fix this silly issue.
* Sort includes in python_api.cMichael Vetter2019-10-071-5/+2
|
* Destroy hash table ein autocompleters_destroy()Michael Vetter2019-10-061-0/+3
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Add comment about dead assignment in callback_add_timedMichael Vetter2019-08-231-0/+1
|
* Fix double initialization of loop iteratorMichael Vetter2019-07-221-2/+0
|
* Rename prof_message_t into ProfMessagePaul Fariello2019-06-201-1/+1
|
* Add prof_message_t to wrap all message attributesPaul Fariello2019-06-201-2/+8
| | | | | | | Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all.
* Improve plugin load/install failure messageMichael Vetter2019-06-072-12/+23
| | | | | | 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.
* Follow normal workflow for OMEMO message receptionPaul Fariello2019-04-101-1/+1
| | | | | | We try to decrypt all messages, if it's successful we use sv_ev_incoming_message even for OMEMO messages. We pass an OMEMO boolean to let UI be aware that message were encrypted.
* Merge pull request #994 from philipflohr/masterMichael Vetter2019-02-201-1/+2
|\ | | | | Fail plugin unloading if plugin does not exist
| * Fail plugin unload operation if plugin does not existPhilip Flohr2019-02-201-1/+2
| |
* | Merge pull request #995 from philipflohr/plugins_unload_allMichael Vetter2019-02-201-3/+3
|\ \ | | | | | | let plugins_unload_all fail if one plugin unload operation fails
| * | plugins_unload_all fails if one plugin unload operation failsPhilip Flohr2018-04-211-3/+3
| |/
* | Update copyright to include 2019Michael Vetter2019-01-2224-24/+24
| |
* | Fix extended plugin handling PRPhilip Flohr2018-09-061-1/+6
| | | | | | | | Fixes problems found in PR #999
* | added the possibility to uninstall a pluginPhilip Flohr2018-09-062-0/+17
| |
* | use gio functions for file copyPhilip Flohr2018-09-061-2/+1
| |
* | removed unreachable code: if plugin is loaded it is also installed and ↵Philip Flohr2018-09-061-5/+0
| | | | | | | | therefore installation will fail. -> The unload code is not needed
* | provide feedback on failure cause if plugin installation failsPhilip Flohr2018-09-062-4/+7
| |
* | Fail plugin installation if the target file already existsPhilip Flohr2018-09-061-0/+6
|/
* Add preferences for tab displayJames Booth2018-03-091-1/+1
|
* Show name in statusbar tabs WIPJames Booth2018-03-081-1/+1
|
* Update copyrightJames Booth2018-01-2124-24/+24
|
* Show Python version on --versionJames Booth2017-08-102-2/+14
| | | | issue #956
* Allow previous autocompletion with shift tabJames Booth2017-04-014-7/+7
|
* Allow installing plugins from directoryJames Booth2017-02-052-0/+45
|
* Allow loading all pluginsJames Booth2017-02-052-3/+26
|
* Allow unloading all pluginsJames Booth2017-02-052-0/+22
|
* Update CopyrightJames Booth2017-01-2824-24/+24
|
* Add pre chat and room message blockingJames Booth2017-01-226-15/+73
|
* Add chat and room show calls to plugins apiJames Booth2017-01-216-0/+343
|
* Allow room display properies to be set by pluginsJames Booth2017-01-206-0/+218
|
26 00:23:43 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-10-26 00:23:43 -0700 2278' href='/akkartik/mu/commit/010vm.cc?h=main&id=257b8a296392700864b3c07d4761498fdf20ce6b'>257b8a29 ^
dcf7436e ^

9a81d746 ^


b24eb476 ^
dcf7436e ^
363be37f ^


1fb0cf9e ^




36594a43 ^

363be37f ^
795f5244 ^
363be37f ^
f1a6f323 ^
1fb0cf9e ^








db5c9550 ^
5497090a ^
1fb0cf9e ^

f1a6f323 ^
36594a43 ^
c6034af3 ^
6c96a437 ^

3adc9e08 ^
c6034af3 ^


6324f6af ^
53a569b8 ^
c6034af3 ^
dcf7436e ^

db5c9550 ^




b291f85b ^
db5c9550 ^




72d5d018 ^


db5c9550 ^

dcf7436e ^
a3d9828c ^
db5c9550 ^
3adc9e08 ^
f1a6f323 ^
7858a06a ^


dcf7436e ^

1848b18f ^





36594a43 ^
2199940a ^

9a81d746 ^
2199940a ^
36594a43 ^
363be37f ^
795f5244 ^
f1a6f323 ^
795f5244 ^
f1a6f323 ^
26785f2a ^


286d7620 ^

26785f2a ^
53a569b8 ^
13ba3def ^

795f5244 ^
257add0f ^

d3902ff0 ^
363be37f ^
ec99eb7a ^
363be37f ^
36594a43 ^
2429c65c ^









ec99eb7a ^
2429c65c ^













093036e8 ^



2429c65c ^




7284d503 ^
3c435756 ^
dcf7436e ^
df40cb6e ^
2caaa7f1 ^
df40cb6e ^


af16d897 ^


755e45f3 ^



755e45f3 ^





8e1d1add ^
dcf7436e ^
8d09d030 ^
9c30b383 ^
1f59be84 ^
8d09d030 ^

c4e143d6 ^




ce2e604e ^
c4e143d6 ^



32597844 ^
c4e143d6 ^
32597844 ^
c4e143d6 ^
f8b56b79 ^




08cf048f ^
8d09d030 ^

ae256ea1 ^

f8b56b79 ^
dcf7436e ^
8d09d030 ^
06462ccd ^
ae256ea1 ^
1f7e3c05 ^
08cf048f ^
93d4cc93 ^
























ae256ea1 ^

93d4cc93 ^
ae256ea1 ^

af023b32 ^


c157066c ^
af023b32 ^
66e6eaf4 ^
af023b32 ^





ae256ea1 ^
af023b32 ^

ae256ea1 ^

c6034af3 ^

caa4275c ^




6c96a437 ^
6078ecf1 ^
ae256ea1 ^
6078ecf1 ^
3377364a ^
c6034af3 ^

4593828f ^



6078ecf1 ^

af023b32 ^

4593828f ^



c9f920da ^
6078ecf1 ^
c9f920da ^
6078ecf1 ^
af023b32 ^
c6034af3 ^

3cfa56a9 ^










bd222553 ^
3cfa56a9 ^




93d4cc93 ^
3cfa56a9 ^
93d4cc93 ^

3cfa56a9 ^











































bd222553 ^
3cfa56a9 ^




3cfa56a9 ^




4593828f ^


6078ecf1 ^

ae256ea1 ^

caa4275c ^

6c96a437 ^
f86778e3 ^
ae256ea1 ^
6c96a437 ^
6078ecf1 ^
caa4275c ^


f86778e3 ^
6078ecf1 ^
3377364a ^
c6034af3 ^



11d10eb0 ^



6c96a437 ^
11d10eb0 ^




c6034af3 ^
11d10eb0 ^
c6034af3 ^




ae256ea1 ^



c6034af3 ^
376b333a ^



















e9eb8be0 ^












3473c63a ^
6c96a437 ^
e9eb8be0 ^





6c96a437 ^
e9eb8be0 ^





6078ecf1 ^









5f05e954 ^
9a81d746 ^
e9eb8be0 ^











6c96a437 ^
15152795 ^
e9eb8be0 ^



f28f2636 ^
e9eb8be0 ^
6cc999ae ^

e9eb8be0 ^



6c96a437 ^
e9eb8be0 ^




14d6f9f3 ^


2b250717 ^

14d6f9f3 ^



e9eb8be0 ^



6c96a437 ^
e9eb8be0 ^


6c96a437 ^
e9eb8be0 ^

6c96a437 ^
e9eb8be0 ^




acc4792d ^
e9eb8be0 ^
5e320aa0 ^
e9eb8be0 ^
6c96a437 ^
e9eb8be0 ^



2b37bbea ^

6c96a437 ^
e9eb8be0 ^





acc4792d ^


6c96a437 ^
acc4792d ^




6c96a437 ^
acc4792d ^





9f95c745 ^
acc4792d ^
8d09d030 ^
acc4792d ^
c4e143d6 ^
9f95c745 ^
6c96a437 ^
acc4792d ^
dcf7436e ^
acc4792d ^
8d09d030 ^

acc4792d ^

d41955c1 ^
acc4792d ^

dcf7436e ^
b954ac38 ^

15c44292 ^
b954ac38 ^


6cc999ae ^
8a3d101e ^
b954ac38 ^
af023b32 ^
b954ac38 ^
6808ff7d ^

6cc999ae ^
af023b32 ^


8a3d101e ^


af023b32 ^




8a3d101e ^
93d4cc93 ^




8a3d101e ^
ae256ea1 ^

15c44292 ^
a97a00df ^
b954ac38 ^
c4e143d6 ^
b954ac38 ^
6808ff7d ^

c4e143d6 ^
af023b32 ^

6b3fc927 ^
c4e143d6 ^


af023b32 ^




c4e143d6 ^
93d4cc93 ^




c4e143d6 ^
9cc389ce ^

2cdf4a04 ^
f3760b0f ^
d75103c0 ^
ed09f738 ^
c157066c ^
ed09f738 ^

c4e143d6 ^
a97a00df ^
c4e143d6 ^




af023b32 ^



c4e143d6 ^


af023b32 ^




c4e143d6 ^
93d4cc93 ^




c4e143d6 ^



a97a00df ^
c4e143d6 ^




af023b32 ^



c4e143d6 ^


af023b32 ^




c4e143d6 ^
93d4cc93 ^




c4e143d6 ^


fa708f55 ^
























a284b697 ^

4082acd2 ^













5e29d0ac ^

4082acd2 ^





dbf64731 ^
3dc3c72c ^
2efceef6 ^



4082acd2 ^
2efceef6 ^
3dc3c72c ^
2efceef6 ^
4082acd2 ^


6f7e2f57 ^
3dc3c72c ^
6f7e2f57 ^





3dc3c72c ^
6f7e2f57 ^



4082acd2 ^

d91de4b8 ^
0ed194fd ^

385ff136 ^
5feb36ff ^
385ff136 ^
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
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900