That was just about it. I've added an else for the client too.
Code:
if(enet_get_connection() == CLIENT_SERVER_MODE)
{ enet_clsend_event(17,tmpMsg,0,enet_get_clientid()); //sends the chat msg to me
}
else
{ enet_clsend_event(17,tmpMsg,0,enet_get_clientid()); //sends the chat msg to me
}