46204621462246234624462546264627
me.Flags = flags; synchronized (MuteList.getDictionary()) { MuteList.add(String.format("{0}|{1}", me.ID, me.Name), me); } onMuteListUpdated.raiseEvent(new EventArgs()); }
46474648464946504651465246534654
{ synchronized (MuteList.getDictionary()) { MuteList.remove(listKey); } onMuteListUpdated.raiseEvent(new EventArgs()); } }
59655966596759685969597059715972597359745975
JLogger.error("Failed to parse the mute list line: " + line, Utils.getExceptionStackTraceAsString(ex)); } } } onMuteListUpdated.raiseEvent(new EventArgs()); } else { JLogger.warn("Timed out waiting for mute list download"); }
2526272829303132333435
} @Test public void testEvents() { BotUtils.sendEvent(new EventArgs(Event.IRC_JOIN, "JOIN #Snipes"), _ehc); // Wait 5 seconds for the event to propagate (a nice and big value) if (!waitForEvent(5000)) { fail("Event handler did not respond in five seconds."); }