else if (reminders.length > 0) con.getIRCIO().privmsg(recipient, nick + ", you had reminders!");
	public void checkForMessages(IRCConnection con, String nick, String host, String recipient) {		User user = data.getUserByHost(host);		int totalMessages = 0;		Message messages[] = data.getMessagesByReceiver(nick, user);		data.removeRecentReminders(nick, user);		Reminder reminders[] = data.getRemindersByReceiver(nick, user, true);		if (messages.length > 0 && reminders.length > 0)			con.getIRCIO().privmsg(recipient, nick + ", you have messages and reminders!");		else if (messages.length > 0)			con.getIRCIO().privmsg(recipient, nick + ", you have messages!");		else if (reminders.length > 0)			con.getIRCIO().privmsg(recipient, nick + ", you had reminders!");		else			return;				for (int i = 0; i < messages.length; i++) {			Message message = messages[i];			if (totalMessages >= 5) {				con.getIRCIO().privmsg(recipient, "You have more messages.");				return;			}			totalMessages++;			con.getIRCIO().privmsg(recipient, "Message from " + message.sender + " [" + makeTime(message.time) + " ago]:" + message.message);			data.removeMessage(message);		}				for (int i = 0; i < reminders.length; i++) {			Reminder reminder = reminders[i];			if (!reminder.notified)				continue;			if (totalMessages >= 5) {				con.getIRCIO().privmsg(recipient, "You have more reminders.");				return;			}			totalMessages++;			String sender = reminder.sender;			if (iequals(reminder.sender, reminder.target))				sender = "yourself";			con.getIRCIO().privmsg(recipient, "Reminder from " + sender + " [" + makeTime(reminder.timeSent) + " ago]: " + reminder.message);			data.removeReminder(reminder);		}	}