|
@@ -1,4 +1,4 @@
|
1
|
|
- /*
|
|
1
|
+/*
|
2
|
2
|
* Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
|
3
|
3
|
*
|
4
|
4
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -906,8 +906,10 @@ public abstract class TextFrame extends JInternalFrame implements Window,
|
906
|
906
|
if (type == MouseClickType.CLICKED) {
|
907
|
907
|
switch (clickType) {
|
908
|
908
|
case CHANNEL:
|
909
|
|
- if (ActionManager.processEvent(CoreActionType.
|
910
|
|
- LINK_CHANNEL_CLICKED, null, this, attribute)) {
|
|
909
|
+ if (frameParent.getServer() != null &&
|
|
910
|
+ ActionManager.processEvent(CoreActionType.
|
|
911
|
+ LINK_CHANNEL_CLICKED, null, this,
|
|
912
|
+ attribute)) {
|
911
|
913
|
frameParent.getServer().join(
|
912
|
914
|
new ChannelJoinRequest(attribute));
|
913
|
915
|
}
|
|
@@ -919,10 +921,12 @@ public abstract class TextFrame extends JInternalFrame implements Window,
|
919
|
921
|
}
|
920
|
922
|
break;
|
921
|
923
|
case NICKNAME:
|
922
|
|
- if (ActionManager.processEvent(CoreActionType.
|
923
|
|
- LINK_NICKNAME_CLICKED, null, this, attribute)) {
|
924
|
|
- getContainer().getServer().addQuery(attribute).
|
925
|
|
- activateFrame();
|
|
924
|
+ if (frameParent.getServer() != null &&
|
|
925
|
+ ActionManager.processEvent(CoreActionType.
|
|
926
|
+ LINK_NICKNAME_CLICKED, null, this,
|
|
927
|
+ attribute)) {
|
|
928
|
+ getContainer().getServer().getQuery(
|
|
929
|
+ attribute).activateFrame();
|
926
|
930
|
}
|
927
|
931
|
break;
|
928
|
932
|
default:
|