gnulag / circ

#gnulag's IRC bot
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

Exit if the nickname is already in use #36

Closed pta2002 closed 5 years ago

pta2002 commented 5 years ago

After some discussion with @maxaudron, we decided to just implement this case by printing an error and exiting. I also created a new function, log_error, that works basically the same as log_info except it prints to stderr and prepends Error: to the message, to make it clear to the user it's an error. I also changed sasl_error_hook to use this function instead of err.