Setting MOTD without text triggers error
Versions
- OS: Windows 10
- GTK Version: 3.24.25
- PyGObject Version: 3.38.0
- GLib Version : 2.66.2
- python-nbxmpp Version: 2.0.2
- Gajim Version: 1.3.1
Traceback
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/gtk/single_message.py", line 330, in _on_send_and_close_clicked
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/gtk/single_message.py", line 251, in _send_single_message
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/common/structs.py", line 74, in __init__
ValueError: Trying to send message without content
Steps to reproduce the problem
Accounts -> Admin -> Set Motd -> Send & Close
One can differ about what should happen, if you set MOTD to an empty string, but giving the error message "Sorry, that should not have happened" is probably not the right answer.