summaryrefslogtreecommitdiff
path: root/documentation/help/toggle.markdown
blob: 3bfed9b94021e3a8a732119047fc6d6ba1981e71 (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
---
layout: page
title: "Help: toggle"
---

{% comment %}

Please submit changes to
- https://github.com/irssi/irssi/blob/master/docs/help/in/toggle.in
- https://github.com/irssi/irssi/blob/master/src/fe-common/core/fe-settings.c


{% endcomment %}
[Help index](/documentation/help)

### Syntax ###

<div class="highlight irssisyntax"><pre style="\-\-cmdlen:6ch"><code><span class="synB">TOGGLE</span> <span class="synB05">&lt;key></span> <span class="syn10">[<span class="syn">on</span>|<span class="syn">off</span>|<span class="syn">toggle</span>]</span></code></pre></div>



### Parameters ###

   The setting to modify and the new value; if no value is given, its opposite
   will be used.

### Description ###

Modifies a setting to its counter value; you can also give ON or OFF as a
value.

### Examples ###

    /TOGGLE resolve_prefer_ipv6
    /TOGGLE channels_rejoin_unavailable ON

### See also ###
[SET](/documentation/help/set)