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
|
__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
=head SIGNAL ARGUMENT 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 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">
I<None>
=item C<"gui dialog">
string C<$type>, string C<$text>
=item C<"send command">
C<string $command>,
L<Irssi::Server> C<$server>,
L<Irssi::Windowitem> C<$window_item>
=back
=head3 F<chat-protocols.c>:
B<TODO: What are CHAT_PROTOCOL_REC types?>
=over 4
=item C<"chat protocol created"> CHAT_PROTOCOL_REC
=item C<"chat protocol updated"> CHAT_PROTOCOL_REC
=item C<"chat protocol destroyed"> CHAT_PROTOCOL_REC
=back
=head3 F<channels.c>:
=over 4
=item C<"channel created"> L<Irssi::Channel>, int C<$automatic>
=item C<"channel destroyed"> L<Irssi::Channel> C<$channel>
=back
=head3 F<chatnets.c>:
=over 4
=item C<"chatnet created"> CHATNET_REC
=item C<"chatnet destroyed"> CHATNET_REC
=back
=head3 F<commands.c>:
=over 4
=item C<"commandlist new">, L<Irssi::Command> C<$cmd>
=item C<"commandlist remove"> L<Irssi::Command> C<$cmd>
=item C<"error command"> int C<$err>, string C<$cmd>
=item C<"send command"> string C<$args>,
L<Irssi::Server> C<$server>, L<Irssi::Windowitem> C<$witem>
=item C<"send text"> string C<$line>, L<Irssi::Server> C<$server>,
L<Irssi::Windowitem> C<$witem>
=item C<"command "<cmd>> string C<$args>, L<Irssi::Server> C<$server>,
L<Irssi::Windowitem> C<$witem>
B<TODO: check this "cmd" out?>
=item C<"default command"> string C<$args>, L<Irssi::Server> C<$server>,
L<Irssi::Windowitem> C<$witem>
=back
=head3 F<ignore.c>:
=over 4
=item C<"ignore created"> L<Irssi::Ignore> C<$ignore>
=item C<"ignore destroyed"> L<Irssi::Ignore> C<$ignore>
=item C<"ignore changed"> L<Irssi::Ignore> C<$ignore>
=back
=head3 F<log.c>:
=over 4
=item C<"log new"> L<Irssi::Log> C<$log>
=item C<"log remove"> L<Irssi::Log> C<$log>
=item C<"log create failed"> L<Irssi::Log> C<$log>
=item C<"log locked"> L<Irssi::Log> C<$log>
=item C<"log started"> L<Irssi::Log> C<$log>
=item C<"log stopped"> L<Irssi::Log> C<$log>
=item C<"log rotated"> L<Irssi::Log> C<$log>
=item C<"log written"> L<Irssi::Log> C<$log>, string C<$line>
=back
=head3 F<modules.c>:
B<TODO: what are these types?>
=over 4
=item "module loaded", MODULE_REC, MODULE_FILE_REC
=item "module unloaded", MODULE_REC, MODULE_FILE_REC
=item "module error", int error, char *text, char *rootmodule, char *submodule
=back
=head3 F<nicklist.c>:
=over 4
=item C<"nicklist new"> L<Irssi::Channel> C<$channel>, L<Irssi::Nick> C<$nick>
=item "nicklist remove", CHANNEL_REC, NICK_REC
=item "nicklist changed", CHANNEL_REC, NICK_REC, char *old_nick
=item "nicklist host changed", CHANNEL_REC, NICK_REC
=item "nicklist gone changed", CHANNEL_REC, NICK_REC
=item "nicklist serverop changed", CHANNEL_REC, NICK_REC
=back
=head3 pidwait.c:
=over 4
=item "pidwait", int pid, int status
=back
=head3 queries.c:
=over 4
=item "query created", QUERY_REC, int automatic
=item "query destroyed", QUERY_REC
=item "query nick changed", QUERY_REC, char *orignick
=item "window item name changed", WI_ITEM_REC
=item "query address changed", QUERY_REC
=item "query server changed", QUERY_REC, SERVER_REC
=back
=head3 rawlog.c:
=over 4
=item "rawlog", RAWLOG_REC, char *data
=back
=head3 server.c:
=over 4
=item "server looking", SERVER_REC
=item "server connected", SERVER_REC
=item "server connecting", SERVER_REC, ulong *ip
=item "server connect failed", SERVER_REC
=item "server disconnected", SERVER_REC
=item "server quit", SERVER_REC, char *msg
=item "server sendmsg", SERVER_REC, char *target, char *msg, int target_type
=back
=head3 settings.c:
=over 4
=item "setup changed"
=item "setup reread", char *fname
=item "setup saved", char *fname, int autosaved
=back
=head2 IRC Core
=head3 bans.c:
"ban type changed", char *bantype
=head3 channels, nicklist:
"channel joined", CHANNEL_REC
"channel wholist", CHANNEL_REC
"channel sync", CHANNEL_REC
"channel topic changed", CHANNEL_REC
=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
|