Code review response:
Code review response:

 - Removed homeserver_domain as it is not used
 - Use membership state API, as Synapse doesn't pass the reason on /kick
 - Handle non JSON body error responses
 - Improved logging

matrix-org/matrix-appservice-irc,matrix-org/matrix-appservice-irc,matrix-org/matrix-appservice-irc