}
} catch (Throwable t) {
myHandler.debugInfo("EXCEPTION: " + t.getMessage());
}
if (!(ProtsState.myProts.containsKey(protName) || protName.startsWith("Effect"))) {
ProtsState.myProts.put(protName, new Prot(protName, ProtsState.stickyActive));
myHandler.doCommand(
"@party report " + protName
+ (ProtsState.stickyActive ? " (sticky)" : "")
+ " UP (Duration: " + protLasts + ")");
}
if (checkProts.containsKey(protName)) {
myHandler.debugInfo("No need to report down for: " + protName);
checkProts.remove(protName);
}
if (reportToParty && !"Effect".equals(protName)) {
Prot activeProt = ProtsState.myProts.get(protName);
if (ProtsHandler.getShortNameMap().get(protName.toLowerCase()) != null) {
reportPartyProts.append(ProtsHandler.getShortNameMap().get(protName.toLowerCase()));
if (activeProt.isSticky())
reportPartyProts.append("-S");
if (!protLasts.equals("For now")) {
reportPartyProts.append(" (");
reportPartyProts.append(protLasts);
reportPartyProts.append(") ");