Merge pull request #4 from phrstbrn/patch-1

Fix error in onDisable()
This commit is contained in:
ElgarL committed 2012-02-20 00:01:52 -08:00
commit b7603f6038
1 file changed
+4 -2
@@ -84,8 +84,10 @@ public class Chat extends JavaPlugin {
unregisterPermissions(); unregisterPermissions();
// reset any handles // reset any handles
irc = null; irc = null;
craftIRC.unregisterEndPoint("towny"); if (craftIRC != null) {
craftIRC = null; craftIRC.unregisterEndPoint("towny");
craftIRC = null;
}
dynMap = null; dynMap = null;
heroicDeathListener= null; heroicDeathListener= null;
towny = null; towny = null;