Fix error in onDisable()

This commit is contained in:
phrstbrn committed 2012-02-20 00:14:23 -05:00
1 parent b66d431a51
commit 287b8a0ab1
1 file changed
+4 -2
@@ -84,8 +84,10 @@ public class Chat extends JavaPlugin {
unregisterPermissions();
// reset any handles
irc = null;
craftIRC.unregisterEndPoint("towny");
craftIRC = null;
if (craftIRC != null) {
craftIRC.unregisterEndPoint("towny");
craftIRC = null;
}
dynMap = null;
heroicDeathListener= null;
towny = null;