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
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
|
__END__
=head1 NAME
Irssi Signal Documentation
=head1 DESCRIPTION
Perl POD documentation based on the doc/signals.txt documentation supplied with
Irssi.
=head1 USING SIGNALS
See L<Irssi/"Signals">
=begin irssi_signal_types
START OF SIGNAL TYPES
=over
=item C<GList \* of ([^,]*)> C<glistptr_$1>
=item C<GSList \* of (\w+)s> C<gslist_$1>
=item C<char \*> C<string>
=item C<ulong \*> C<ulongptr>
=item C<int \*> C<intptr>
=item C<int> C<int>
=item C<CHATNET_REC> C<iobject>
=item C<SERVER_REC> C<iobject>
=item C<RECONNECT_REC> C<iobject>
=item C<CHANNEL_REC> C<iobject>
=item C<QUERY_REC> C<iobject>
=item C<COMMAND_REC> C<iobject>
=item C<NICK_REC> C<iobject>
=item C<LOG_REC> C<Irssi::Log>
=item C<RAWLOG_REC> C<Irssi::Rawlog>
=item C<IGNORE_REC> C<Irssi::Ignore>
=item C<MODULE_REC> C<Irssi::Module>
=item C<BAN_REC> C<Irssi::Irc::Ban>
=item C<NETSPLIT_REC> C<Irssi::Irc::Netsplit>
=item C<NETSPLIT_SERVER__REC> C<Irssi::Irc::Netsplitserver>
=item C<DCC_REC> C<siobject>
=item C<AUTOIGNORE_REC> C<Irssi::Irc::Autoignore>
=item C<AUTOIGNORE_REC> C<Irssi::Irc::Autoignore>
=item C<NOTIFYLIST_REC> C<Irssi::Irc::Notifylist>
=item C<CLIENT_REC> C<Irssi::Irc::Client>
=item C<THEME_REC> C<Irssi::UI::Theme>
=item C<KEYINFO_REC> C<Irssi::UI::Keyinfo>
=item C<PROCESS_REC> C<Irssi::UI::Process>
=item C<TEXT_DEST_REC> C<Irssi::UI::TextDest>
=item C<WINDOW_REC> C<Irssi::UI::Window>
=item C<WI_ITEM_REC> C<iobject>
=item C<PERL_SCRIPT_REC> C<Irssi::Script>
=back
END OF SIGNAL TYPES
=end irssi_signal_types
=head1 SIGNAL DEFINITIONS
The following signals are categorised as in the original documentation, but
have been revised to note Perl variable types and class names.
Arguments are passed to signal handlers in the usual way, via C<@_>.
=for irssi_signal_defs START OF SIGNAL DEFINITIONS
=head2 Core
=over 4
=item C<"gui exit">
=over
=item I<None>
=back
=item C<"gui dialog">
=over
=item string C<$type>
=item string C<$text>
=back
=item C<"send command">
=over
=item C<string $command>,
=item L<Irssi::Server> C<$server>,
=item L<Irssi::Windowitem> C<$window_item>
=back
This is sent when a command is entered via the GUI, or by scripts via L<Irssi::command>.
=back
=head3 F<chat-protocols.c>:
B<TODO: What are CHAT_PROTOCOL_REC types?>
=over 4
=item C<"chat protocol created">
=over
=item CHAT_PROTOCOL_REC C<$protocol>
=back
=item C<"chat protocol updated">
=over
=item CHAT_PROTOCOL_REC C<$protocol>
=back
=item C<"chat protocol destroyed">
=over
=item CHAT_PROTOCOL_REC C<$protocol>
=back
=back
=head3 F<channels.c>:
=over 4
=item C<"channel created">
=over
=item L<Irssi::Channel> C<$channel>
=item int C<$automatic>
=back
=item C<"channel destroyed">
=over
=item L<Irssi::Channel> C<$channel>
=back
=back
=head3 F<chatnets.c>:
=over 4
=item C<"chatnet created">
=over
=item CHATNET_REC C<$chatnet>
=back
=item C<"chatnet destroyed">
=over
=item CHATNET_REC C<$chatnet>
=back
=back
=head3 F<commands.c>:
=over 4
=item C<"commandlist new">
=over
=item L<Irssi::Command> C<$cmd>
=back
=item C<"commandlist remove">
=over
=item L<Irssi::Command> C<$cmd>
=back
=item C<"error command">
=over
=item int C<$err>
=item string C<$cmd>
=back
=item C<"send command">
=over
=item string C<$args>
=item L<Irssi::Server> C<$server>
=item L<Irssi::Windowitem> C<$witem>
=back
=item C<"send text">
=over
=item string C<$line>
=item L<Irssi::Server> C<$server>
=item L<Irssi::Windowitem> C<$witem>
=back
=item C<"command "<cmd>>
=over
=item string C<$args>
=item L<Irssi::Server> C<$server>
=item L<Irssi::Windowitem> C<$witem>
=back
B<TODO: check this "cmd" out?>
=item C<"default command">
=over
=item string C<$args>
=item L<Irssi::Server> C<$server>
=item L<Irssi::Windowitem> C<$witem>
=back
=back
=head3 F<ignore.c>:
=over 4
=item C<"ignore created">
=over
=item L<Irssi::Ignore> C<$ignore>
=back
=item C<"ignore destroyed">
=over
=item L<Irssi::Ignore> C<$ignore>
=back
=item C<"ignore changed">
=over
=item L<Irssi::Ignore> C<$ignore>
=back
=back
=head3 F<log.c>:
=over 4
=item C<"log new">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log remove">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log create failed">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log locked">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log started">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log stopped">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log rotated">
=over
=item L<Irssi::Log> C<$log>
=back
=item C<"log written">
=over
=item L<Irssi::Log> C<$log>
=item string C<$line>
=back
=back
=head3 F<modules.c>:
B<TODO: what are these types?>
=over 4
=item C<"module loaded">
=over
=item MODULE_REC C<$module>
=item MODULE_FILE_REC C<$module_file>
=back
=item C<"module unloaded">
=over
=item MODULE_REC C<$module>
=item MODULE_FILE_REC C<$module_file>
=back
=item C<"module error">
=over
=item int C<$error>
=item string C<$text>
=item string C<$root_module>
=item string C<$sub_module>
=back
=back
=head3 F<nicklist.c>:
=over 4
=item C<"nicklist new">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=back
=item C<"nicklist remove">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=back
=item C<"nicklist changed">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=item string C<$old_nick>
=back
=item C<"nicklist host changed">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=back
=item C<"nicklist gone changed">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=back
=item C<"nicklist serverop changed">
=over
=item L<Irssi::Channel> C<$channel>
=item L<Irssi::Nick> C<$nick>
=back
=back
=head3 F<pidwait.c>:
=over 4
=item C<"pidwait">
=over
=item int C<$pid>
=item int C<$status>
=back
=back
=head3 F<queries.c>:
=over 4
=item C<"query created">
=over
=item L<Irssi::Query> C<$query>
=item int C<$automatic>
=back
=item C<"query destroyed">
=over
=item L<Irssi::Query> C<$query>
=back
=item C<"query nick changed">
=over
=item L<Irssi::Query> C<$query>
=item string C<$original_nick>
=back
=item C<"window item name changed">
=over
=item L<Irssi::Windowitem> C<$witem>
=back
=item C<"query address changed">
=over
=item L<Irssi::Query> C<$query>
=back
=item C<"query server changed">
=over
=item L<Irssi::Query> C<$query>
=item L<Irssi::Server> C<$server>
=back
=back
=head3 F<rawlog.c>:
=over 4
=item C<"rawlog">
=over
=item L<Irssi::Rawlog> C<$raw_log>
=item string C<$data>
=back
=back
=head3 F<server.c>:
=over 4
=item C<"server looking">
=over
=item L<Irssi::Server> C<$server>
=back
=item C<"server connected">
=over
=item L<Irssi::Server> C<$server>
=back
=item C<"server connecting">
=over
=item L<Irssi::Server> C<$server>
=item ulongptr C<$ip>
=back
=item C<"server connect failed">
=over
=item L<Irssi::Server> C<$server>
=back
=item C<"server disconnected">
=over
=item L<Irssi::Server> C<$server>
=back
=item C<"server quit">
=over
=item L<Irssi::Server> C<$server>
=item string C<$message>
=back
=item C<"server sendmsg">
=over
=item L<Irssi::Server> C<$server>
=item string C<$target>
=item string C<$message>
=item int C<$target_type>
=back
=back
=head3 F<settings.c>:
=over 4
=item C<"setup changed">
=over
=item I<None>
=back
=item C<"setup reread">
=over
=item string C<$fname>
=back
=item C<"setup saved">
=over
=item string C<$fname>
=item int C<$autosaved>
=back
=back
=head2 IRC Core
=head3 F<bans.c>:
=over 4
=item C<"ban type changed">
=over
=item string C<$bantype>
=back
=back
=head3 F<channels>, F<nicklist>:
B<TODO: are these actual files? .c?>
=over 4
=item C<"channel joined">
=over
=item L<Irssi::Channel> C<$channel>
=back
=item C<"channel wholist">
=over
=item L<Irssi::Channel> C<$channel>
=back
=item C<"channel sync">
=over
=item L<Irssi::Channel> C<$channel>
=back
=item C<"channel topic changed">
=over
=item L<Irssi::Channel> C<$channel>
=back
=back
=head3 ctcp.c:
"ctcp msg", SERVER_REC, char *args, char *nick, char *addr, char *target
"ctcp msg "<cmd>, SERVER_REC, char *args, char *nick, char *addr, char *target
"default ctcp msg", SERVER_REC, char *args, char *nick, char *addr, char *target
"ctcp reply", SERVER_REC, char *args, char *nick, char *addr, char *target
"ctcp reply "<cmd>, SERVER_REC, char *args, char *nick, char *addr, char *target
"default ctcp reply", SERVER_REC, char *args, char *nick, char *addr, char *target
"ctcp action", SERVER_REC, char *args, char *nick, char *addr, char *target
=head3 irc-log.c:
"awaylog show", LOG_REC, int away_msgs, int filepos
=head3 irc-nicklist.c:
"server nick changed", SERVER_REC
=head3 irc-servers.c:
"event connected", SERVER_REC
=head3 irc.c:
"server event", SERVER_REC, char *data, char *sender_nick, char *sender_address
"event "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
"default event", SERVER_REC, char *data, char *sender_nick, char *sender_address
"whois default event", SERVER_REC, char *args, char *sender_nick, char *sender_address
"server incoming", SERVER_REC, char *data
(for perl parser..)
"redir "<cmd>, SERVER_REC, char *args, char *sender_nick, char *sender_address
=head3 lag.c:
"server lag", SERVER_REC
"server lag disconnect", SERVER_REC
=head3 massjoin.c:
"massjoin", CHANNEL_REC, GSList of NICK_RECs
=head3 mode-lists.c:
"ban new", CHANNEL_REC, BAN_REC
"ban remove", CHANNEL_REC, BAN_REC, char *setby
=head3 modes.c:
"channel mode changed", CHANNEL_REC, char *setby
"nick mode changed", CHANNEL_REC, NICK_REC, char *setby, char *mode, char *type
"user mode changed", SERVER_REC, char *old
"away mode changed", SERVER_REC
=head3 netsplit.c:
"netsplit server new", SERVER_REC, NETSPLIT_SERVER_REC
"netsplit server remove", SERVER_REC, NETSPLIT_SERVER_REC
"netsplit new", NETSPLIT_REC
"netsplit remove", NETSPLIT_REC
=head2 IRC Modules
=head3 dcc*.c:
"dcc ctcp "<cmd>, char *args, DCC_REC
"default dcc ctcp", char *args, DCC_REC
"dcc unknown ctcp", char *args, char *sender, char *sendaddr
"dcc reply "<cmd>, char *args, DCC_REC
"default dcc reply", char *args, DCC_REC
"dcc unknown reply", char *args, char *sender, char *sendaddr
"dcc chat message", DCC_REC, char *msg
"dcc created", DCC_REC
"dcc destroyed", DCC_REC
"dcc connected", DCC_REC
"dcc rejecting", DCC_REC
"dcc closed", DCC_REC
"dcc request", DCC_REC, char *sendaddr
"dcc request send", DCC_REC
"dcc chat message", DCC_REC, char *msg
"dcc transfer update", DCC_REC
"dcc get receive", DCC_REC
"dcc error connect", DCC_REC
"dcc error file create", DCC_REC, char *filename
"dcc error file open", char *nick, char *filename, int errno
"dcc error get not found", char *nick
"dcc error send exists", char *nick, char *filename
"dcc error unknown type", char *type
"dcc error close not found", char *type, char *nick, char *filename
=head3 autoignore.c:
"autoignore new", SERVER_REC, AUTOIGNORE_REC
"autoignore remove", SERVER_REC, AUTOIGNORE_REC
=head3 flood.c:
"flood", SERVER_REC, char *nick, char *host, int level, char *target
=head3 notifylist.c:
"notifylist new", NOTIFYLIST_REC
"notifylist remove", NOTIFYLIST_REC
"notifylist joined", SERVER_REC, char *nick, char *user, char *host, char *realname, char *awaymsg
"notifylist away changed", SERVER_REC, char *nick, char *user, char *host, char *realname, char *awaymsg
"notifylist left", SERVER_REC, char *nick, char *user, char *host, char *realname, char *awaymsg
=head3 proxy/listen.c:
"proxy client connected", CLIENT_REC
"proxy client disconnected", CLIENT_REC
"proxy client command", CLIENT_REC, char *args, char *data
"proxy client dump", CLIENT_REC, char *data
=head2 Display (FE) Common
B<Requires to work properly:>
"gui print text", WINDOW_REC, int fg, int bg, int flags, char *text, TEXT_DEST_REC
(Can be used to determine when all "gui print text"s are sent (not required))
"gui print text finished", WINDOW_REC
B<Provides signals:>
=head3 completion.c:
"complete word", GList * of char*, WINDOW_REC, char *word, char *linestart, int *want_space
=head3 fe-common-core.c:
"irssi init read settings"
=head3 fe-exec.c:
"exec new", PROCESS_REC
"exec remove", PROCESS_REC, int status
"exec input", PROCESS_REC, char *text
=head3 fe-messages.c:
"message public", SERVER_REC, char *msg, char *nick, char *address, char *target
"message private", SERVER_REC, char *msg, char *nick, char *address
"message own_public", SERVER_REC, char *msg, char *target
"message own_private", SERVER_REC, char *msg, char *target, char *orig_target
"message join", SERVER_REC, char *channel, char *nick, char *address
"message part", SERVER_REC, char *channel, char *nick, char *address, char *reason
"message quit", SERVER_REC, char *nick, char *address, char *reason
"message kick", SERVER_REC, char *channel, char *nick, char *kicker, char *address, char *reason
"message nick", SERVER_REC, char *newnick, char *oldnick, char *address
"message own_nick", SERVER_REC, char *newnick, char *oldnick, char *address
"message invite", SERVER_REC, char *channel, char *nick, char *address
"message topic", SERVER_REC, char *channel, char *topic, char *nick, char *address
=head3 keyboard.c:
"keyinfo created", KEYINFO_REC
"keyinfo destroyed", KEYINFO_REC
=head3 printtext.c:
"print text", TEXT_DEST_REC *dest, char *text, char *stripped
=head3 themes.c:
"theme created", THEME_REC
"theme destroyed", THEME_REC
=head3 window-activity.c:
"window hilight", WINDOW_REC
"window dehilight", WINDOW_REC
"window activity", WINDOW_REC, int old_level
"window item hilight", WI_ITEM_REC
"window item activity", WI_ITEM_REC, int old_level
=head3 window-items.c:
"window item new", WINDOW_REC, WI_ITEM_REC
"window item remove", WINDOW_REC, WI_ITEM_REC
"window item moved", WINDOW_REC, WI_ITEM_REC, WINDOW_REC
"window item changed", WINDOW_REC, WI_ITEM_REC
"window item server changed", WINDOW_REC, WI_ITEM_REC
=head3 windows.c:
"window created", WINDOW_REC
"window destroyed", WINDOW_REC
"window changed", WINDOW_REC, WINDOW_REC old
"window changed automatic", WINDOW_REC
"window server changed", WINDOW_REC, SERVER_REC
"window refnum changed", WINDOW_REC, int old
"window name changed", WINDOW_REC
"window history changed", WINDOW_REC, char *oldname
"window level changed", WINDOW_REC
=head2 Display (FE) IRC
=head3 fe-events.c:
"default event numeric", SERVER_REC, char *data, char *nick, char *address
=head3 fe-irc-messages.c:
"message irc op_public", SERVER_REC, char *msg, char *nick, char *address, char *target
"message irc own_wall", SERVER_REC, char *msg, char *target
"message irc own_action", SERVER_REC, char *msg, char *target
"message irc action", SERVER_REC, char *msg, char *nick, char *address, char *target
"message irc own_notice", SERVER_REC, char *msg, char *target
"message irc notice", SERVER_REC, char *msg, char *nick, char *address, char *target
"message irc own_ctcp", SERVER_REC, char *cmd, char *data, char *target
"message irc ctcp", SERVER_REC, char *cmd, char *data, char *nick, char *address, char *target
=head3 fe-modes.c:
"message irc mode", SERVER_REC, char *channel, char *nick, char *addr, char *mode
=head3 dcc/fe-dcc-chat-messages.c:
"message dcc own", DCC_REC *dcc, char *msg
"message dcc own_action", DCC_REC *dcc, char *msg
"message dcc own_ctcp", DCC_REC *dcc, char *cmd, char *data
"message dcc", DCC_REC *dcc, char *msg
"message dcc action", DCC_REC *dcc, char *msg
"message dcc ctcp", DCC_REC *dcc, char *cmd, char *data
=head2 Display (FE) Text
=head3 F<gui-readline.c>:
=over 4
=item C<"gui key pressed"> int C<$key>
=back
=head3 F<gui-printtext.c>:
=over 4
=item C<"beep"> I<None>
=back
=head2 Perl Scripting
=over 4
=item C<"script error"> PERL_SCRIPT_REC, string C<$errormsg>
=back
=for irssi_signal_defs END OF SIGNAL DEFINITIONS
=head1 SIGNAL AUTO-GENERATION
This file is used to auto-generate the signal definitions used by Irssi, and hence
must be edited in order to add new signals.
=head2 Format
|