public void sendMessageWrapper(String recipient, String nick, String message) {
        // Split the string first into mutliple lines
        StringTokenizer token = new StringTokenizer(message, " ");
        StringBuilder chunk = new StringBuilder(MAXMSGLENGTH);
        ArrayList<String> lines = new ArrayList<String>();
        while (token.hasMoreTokens()) {
            String word = token.nextToken();

            if (chunk.length() + word.length() > MAXMSGLENGTH) {
                lines.add(chunk.toString());
                chunk.delete(0, chunk.length());
            }
            chunk.append(word + " ");
        }
        lines.add(chunk.toString());

        // Send string
        for(String line : lines) {
            if(nick == null) {
                sendMessage(recipient, line);
            }
            else {
                sendMessage(recipient, nick + ": " + line);
            }
        }
    }