about summary refs log tree commit diff stats
path: root/src/common.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-29 10:48:42 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-03-29 10:48:42 +0200
commit3c1e4bac3ae640bc4c451d7d4a1c06146e13a15a (patch)
tree8817200d0bd211be198dbf4e51ae6ae2ae4f64fc /src/common.c
parenta09d49d884578fdaea01f9ff4be0fcc9f0fe7746 (diff)
downloadprofani-tty-3c1e4bac3ae640bc4c451d7d4a1c06146e13a15a.tar.gz
Fix segfault in cmd_autoaway()
Two mistakes were here:
* `/autoaway time away` without a time argument segfaulted
* `/autoaway message away` without a mesage set to (null). We have
  `/autoaway message off to set it off.

Also use g_strcmp0() instead of strcmp().
Diffstat (limited to 'src/common.c')
0 files changed, 0 insertions, 0 deletions