aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2018-02-11 18:27:17 -0300
committerdequis <dx@dxzone.com.ar>2018-02-11 18:27:17 -0300
commit16ea00d7e84a05703e047fa010e2b0621104220b (patch)
tree22b3034ec72e36c797d83d1098a0fd921709fbc8 /irc_im.c
parent1dcbd3eb4da9002c9ed73b6a9f2423bdc3b8ffea (diff)
root_commands: Improve 'chat add' error/success messages
This handles the most common error case with an obvious error message (channel already exists, join it, etc), and the rarer ones with vague but different wording. For those cases: - "Could not add chatroom." This wording is not present in this version anymore, likely means the channel already exists. - "Error creating channel for chatroom." irc_channel_new() failed but the channel doesn't exist already. This could be that some name validation failed, but this function already generates a suitable name. - "Error adding chatroom." irc_channel_new() succeeded, but one of the set_setstr() failed. There are account checks earlier, and the room setting is not normally validated at this point. Can't really imagine situations where these vague errors would still show up, but at least now you only get those for unknown cases.
Diffstat (limited to 'irc_im.c')
0 files changed, 0 insertions, 0 deletions