summaryrefslogtreecommitdiff
path: root/doc/en/autogen/user/irc_commands.txt
blob: 650f405b5a88603437856ab7eaf0411ff7c2f042 (plain)
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
• *`/admin`* `[target]`::

........................................
  find information about the administrator of the server

  target: server
........................................

• *`/allchan`* `[-current] [-exclude=channel[,channel...]] command [arguments]`::

........................................
  execute a command on all channels of all connected servers

   -current: execute command for channels of current server only
   -exclude: exclude some channels ('*' is allowed at beginning or end of channel name, to exclude many channels)
    command: command to execute
  arguments: arguments for command
  
  Examples:
    execute '/me is testing' on all channels:
      /allchan me is testing
    say 'hello' everywhere but not on #weechat:
      /allchan -exclude=#weechat msg * hello
    say 'hello' everywhere but not on #weechat and channels beginning with #linux:
      /allchan -exclude=#weechat,#linux* msg * hello
........................................

• *`/allserv`* `[-exclude=server[,server...]] command [arguments]`::

........................................
  execute a command on all connected servers

   -exclude: exclude some servers ('*' is allowed at beginning or end of server name, to exclude many servers)
    command: command to execute
  arguments: arguments for command
  
  Examples:
    change nick on all servers:
      /allserv nick newnick
    set away on all servers:
      /allserv away I'm away
........................................

• *`/ban`* `[channel] [nickname [nickname ...]]`::

........................................
  ban nicks or hosts

   channel: channel for ban
  nickname: user or host to ban
........................................

• *`/connect`* `[-all [-nojoin] | servername [servername ...] [-nojoin] | hostname[/port] [-option[=value]] [-nooption]]`::

........................................
  connect to IRC server(s)

        -all: connect to all servers
  servername: internal server name to connect (server must have been created by /server add)
     -nojoin: do not join any channel (even if autojoin is enabled on server)
    hostname: hostname (or IP) of a server
        port: port for server (6667 by default)
      option: set option for server (for boolean option, value can be omitted)
    nooption: set boolean option to 'off' (for example: -nossl)
  
  Examples:
    /connect freenode
    /connect irc.oftc.net/6667
    /connect irc6.oftc.net/6667 -ipv6
    /connect irc6.oftc.net/6697 -ipv6 -ssl
    /connect my.server.org/6697 -ssl -password=test
........................................

• *`/ctcp`* `receiver type [arguments]`::

........................................
  send a CTCP message (Client-To-Client Protocol)

   receiver: nick or channel to send CTCP to
       type: CTCP type (examples: "version", "ping", ..)
  arguments: arguments for CTCP
........................................

• *`/cycle`* `[channel[,channel]] [part_message]`::

........................................
  leave and rejoin a channel

       channel: channel name for cycle
  part_message: part message (displayed to other users)
........................................

• *`/dcc`* `action [nickname [file]]`::

........................................
  start DCC (file or chat)

    action: 'send' (file) or 'chat'
  nickname: nickname to send file or chat
      file: filename (on local host)
........................................

• *`/dehalfop`* `[nickname [nickname]]`::

........................................
  remove half channel operator status from nickname(s)
........................................

• *`/deop`* `[nickname [nickname]]`::

........................................
  remove channel operator status from nickname(s)
........................................

• *`/devoice`* `[nickname [nickname]]`::

........................................
  remove voice from nickname(s)
........................................

• *`/die`*::

........................................
  shutdown the server
........................................

• *`/disconnect`* `[-all | servername [servername ...]]`::

........................................
  disconnect from IRC server(s)

        -all: disconnect from all servers
  servername: server name to disconnect
........................................

• *`/forcejoin`* `nickname channel[,channel]`::

........................................
  forces a user to join channel(s)

  nickname: nickname
   channel: channel name
........................................

• *`/halfop`* `[nickname [nickname]]`::

........................................
  give half channel operator status to nickname(s)
........................................

• *`/ignore`* `[list] | [add [re:]nick/host [server [channel]]] | [del number|-all]`::

........................................
  ignore nicks/hosts from servers or channels

       list: list all ignores
        add: add a ignore
        del: del a ignore
     number: number of ignore to delete (look at list to find it)
       -all: delete all ignores
  nick/host: nick or host to ignore: syntax is "re:regex" or "mask" (a mask is a string with some "*" to replace one or more chars)
     server: internal server name where ignore is working
    channel: channel name where ignore is working
  
  Examples:
    ignore nick "toto" everywhere:
      /ignore add toto
    ignore host "toto@domain.com" on freenode server:
      /ignore add toto@domain.com freenode
    ignore host "toto*@*.domain.com" on freenode/#weechat:
      /ignore add toto*@*.domain.com freenode #weechat
........................................

• *`/info`* `[target]`::

........................................
  get information describing the server

  target: server name
........................................

• *`/invite`* `nickname channel`::

........................................
  invite a nick on a channel

  nickname: nick to invite
   channel: channel to invite
........................................

• *`/ison`* `nickname [nickname ...]`::

........................................
  check if a nickname is currently on IRC

  nickname: nickname
........................................

• *`/join`* `[channel[,channel] [key[,key]]]`::

........................................
  join a channel

  channel: channel name to join
      key: key to join the channel
........................................

• *`/kick`* `[channel] nickname [comment]`::

........................................
  forcibly remove a user from a channel

   channel: channel where user is
  nickname: nickname to kick
   comment: comment for kick
........................................

• *`/kickban`* `[channel] nickname [comment]`::

........................................
  kicks and bans a nick from a channel

   channel: channel where user is
  nickname: nickname to kick and ban
   comment: comment for kick
  
  It is possible to kick/ban with a mask, nick will be extracted from mask and replaced by "*", for example:
    /kickban toto!*@host.com
    will ban "*!*@host.com" and then kick "toto".
........................................

• *`/kill`* `nickname comment`::

........................................
  close client-server connection

  nickname: nickname
   comment: comment for kill
........................................

• *`/links`* `[[server] server_mask]`::

........................................
  list all servernames which are known by the server answering the query

       server: this server should answer the query
  server_mask: list of servers must match this mask
........................................

• *`/list`* `[channel[,channel] [server]]`::

........................................
  list channels and their topic

  channel: channel to list (a regexp is allowed)
  server: server name
........................................

• *`/lusers`* `[mask [target]]`::

........................................
  get statistics about the size of the IRC network

    mask: servers matching the mask only
  target: server for forwarding request
........................................

• *`/map`*::

........................................
  show a graphical map of the IRC network
........................................

• *`/me`* `message`::

........................................
  send a CTCP action to the current channel

  message: message to send
........................................

• *`/mode`* `{ [channel] {[+|-]|o|p|s|i|t|n|b|v} [limit] [user] [ban mask] } | { nickname {[+|-]|i|w|s|o} }`::

........................................
  change channel or user mode

  channel modes:
    channel: channel name to modify (default is current one)
    o: give/take channel operator privileges
    p: private channel flag
    s: secret channel flag
    i: invite-only channel flag
    t: topic settable by channel operator only flag
    n: no messages to channel from clients on the outside
    m: moderated channel
    l: set the user limit to channel
    b: set a ban mask to keep users out
    e: set exception mask
    v: give/take the ability to speak on a moderated channel
    k: set a channel key (password)
  user modes:
    nickname: nickname to modify
    i: mark a user as invisible
    s: mark a user for receive server notices
    w: user receives wallops
    o: operator flag
........................................

• *`/motd`* `[target]`::

........................................
  get the "Message Of The Day"

  target: server name
........................................

• *`/msg`* `[-server server] receiver[,receiver] text`::

........................................
  send message to a nick or channel

    server: send to this server (internal name)
  receiver: nick or channel (may be mask, '*' = current channel)
      text: text to send
........................................

• *`/names`* `[channel[,channel]]`::

........................................
  list nicknames on channels

  channel: channel name
........................................

• *`/nick`* `[-all] nickname`::

........................................
  change current nickname

      -all: set new nickname for all connected servers
  nickname: new nickname
........................................

• *`/notice`* `[-server server] nickname text`::

........................................
  send notice message to user

    server: send to this server (internal name)
  nickname: user to send notice to
      text: text to send
........................................

• *`/omode`* `channel mode`::

........................................
  change mode on channel, without having operator status

  channel: channel name
     mode: mode for channel
........................................

• *`/op`* `nickname [nickname]`::

........................................
  give channel operator status to nickname(s)
........................................

• *`/oper`* `user password`::

........................................
  get operator privileges

  user/password: used to get privileges on current IRC server
........................................

• *`/part`* `[channel[,channel]] [part_message]`::

........................................
  leave a channel

       channel: channel name to leave
  part_message: part message (displayed to other users)
........................................

• *`/ping`* `server1 [server2]`::

........................................
  ping server

  server1: server to ping
  server2: forward ping to this server
........................................

• *`/pong`* `daemon [daemon2]`::

........................................
  answer to a ping message

   daemon: daemon who has responded to Ping message
  daemon2: forward message to this daemon
........................................

• *`/query`* `[-server server] nickname [text]`::

........................................
  send a private message to a nick

    server: send to this server (internal name)
  nickname: nickname for private conversation
      text: text to send
........................................

• *`/quote`* `[-server server] data`::

........................................
  send raw data to server without parsing

  server: send to this server (internal name)
  data: raw data to send
........................................

• *`/reconnect`* `[-all [-nojoin] | servername [servername ...] [-nojoin]]`::

........................................
  reconnect to server(s)

        -all: reconnect to all servers
  servername: server name to reconnect
     -nojoin: do not join any channel (even if autojoin is enabled on server)
........................................

• *`/rehash`* `[option]`::

........................................
  tell the server to reload its config file

  option: extra option, for some servers
........................................

• *`/restart`*::

........................................
  tell the server to restart itself
........................................

• *`/sajoin`* `nickname channel[,channel]`::

........................................
  forces a user to join channel(s)

  nickname: nickname
   channel: channel name
........................................

• *`/samode`* `channel mode`::

........................................
  change mode on channel, without having operator status

  channel: channel name
     mode: mode for channel
........................................

• *`/sanick`* `nickname new_nickname`::

........................................
  forces a user to use another nick

      nickname: nickname
  new_nickname: new nickname
........................................

• *`/sapart`* `nickname channel[,channel]`::

........................................
  forces a user to leave channel(s)

  nickname: nickname
   channel: channel name
........................................

• *`/saquit`* `nickname reason`::

........................................
  forces a user to quit server with a reason

  nickname: nickname
    reason: reason
........................................

• *`/server`* `[list [servername]] | [listfull [servername]] | [add servername hostname[/port] [-temp] [-option[=value]] [-nooption]] | [copy servername newservername] | [rename servername newservername] | [keep servername] | [del servername] | [deloutq] | [jump] | [raw]`::

........................................
  list, add or remove IRC servers

        list: list servers (no parameter implies this list)
    listfull: list servers with detailed info for each server
         add: create a new server
  servername: server name, for internal and display use
    hostname: name or IP address of server, with optional port (default: 6667), many addresses can be separated by a comma
        temp: create temporary server (not saved)
      option: set option for server (for boolean option, value can be omitted)
    nooption: set boolean option to 'off' (for example: -nossl)
        copy: duplicate a server
      rename: rename a server
        keep: keep server in config file (for temporary servers only)
         del: delete a server
     deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
        jump: jump to server buffer
         raw: open buffer with raw IRC data
  
  Examples:
    /server listfull
    /server add oftc irc.oftc.net/6697 -ssl -autoconnect
    /server add oftc6 irc6.oftc.net/6697 -ipv6 -ssl
    /server add freenode2 chat.eu.freenode.net/6667,chat.us.freenode.net/6667
    /server add freenode3 irc.freenode.net -password=mypass
    /server copy oftc oftcbis
    /server rename oftc newoftc
    /server del freenode
    /server deloutq
........................................

• *`/service`* `nickname reserved distribution type reserved info`::

........................................
  register a new service

  distribution: visibility of service
          type: reserved for future usage
........................................

• *`/servlist`* `[mask [type]]`::

........................................
  list services currently connected to the network

  mask: list only services matching this mask
  type: list only services of this type
........................................

• *`/squery`* `service text`::

........................................
  deliver a message to a service

  service: name of service
  text: text to send
........................................

• *`/squit`* `server comment`::

........................................
  disconnect server links

  server: server name
  comment: comment for quit
........................................

• *`/stats`* `[query [server]]`::

........................................
  query statistics about server

   query: c/h/i/k/l/m/o/y/u (see RFC1459)
  server: server name
........................................

• *`/summon`* `user [target [channel]]`::

........................................
  give users who are on a host running an IRC server a message asking them to please join IRC

     user: username
  target: server name
  channel: channel name
........................................

• *`/time`* `[target]`::

........................................
  query local time from server

  target: query time from specified server
........................................

• *`/topic`* `[channel] [topic]`::

........................................
  get/set channel topic

  channel: channel name
  topic: new topic for channel (if topic is "-delete" then topic is deleted)
........................................

• *`/trace`* `[target]`::

........................................
  find the route to specific server

  target: server
........................................

• *`/unban`* `[channel] nickname [nickname ...]`::

........................................
  unban nicks or hosts

   channel: channel for unban
  nickname: user or host to unban
........................................

• *`/userhost`* `nickname [nickname ...]`::

........................................
  return a list of information about nicknames

  nickname: nickname
........................................

• *`/users`* `[target]`::

........................................
  list of users logged into the server

  target: server
........................................

• *`/version`* `[server | nickname]`::

........................................
  give the version info of nick or server (current or specified)

    server: server name
  nickname: nickname
........................................

• *`/voice`* `[nickname [nickname]]`::

........................................
  give voice to nickname(s)
........................................

• *`/wallops`* `text`::

........................................
  send a message to all currently connected users who have set the 'w' user mode for themselves

  text to send
........................................

• *`/who`* `[mask ["o"]]`::

........................................
  generate a query which returns a list of information

  mask: only information which match this mask
     o: only operators are returned according to the mask supplied
........................................

• *`/whois`* `[server] nickname[,nickname]`::

........................................
  query information about user(s)

    server: server name
  nickname: nickname (may be a mask)
........................................

• *`/whowas`* `nickname [,nickname [,nickname ...]] [count [target]]`::

........................................
  ask for information about a nickname which no longer exists

  nickname: nickname to search
     count: number of replies to return (full search if negative number)
    target: reply should match this mask
........................................