|
@@ -29,7 +29,6 @@ import com.dmdirc.ServerState;
|
29
|
29
|
import com.dmdirc.actions.ActionManager;
|
30
|
30
|
import com.dmdirc.actions.interfaces.ActionType;
|
31
|
31
|
import com.dmdirc.actions.CoreActionType;
|
32
|
|
-import com.dmdirc.config.IdentityManager;
|
33
|
32
|
import com.dmdirc.config.prefs.PreferencesCategory;
|
34
|
33
|
import com.dmdirc.config.prefs.PreferencesManager;
|
35
|
34
|
import com.dmdirc.config.prefs.PreferencesSetting;
|
|
@@ -88,8 +87,6 @@ public final class LagDisplayPlugin extends Plugin implements ActionListener,
|
88
|
87
|
@Override
|
89
|
88
|
public void onLoad() {
|
90
|
89
|
Main.getUI().getStatusBar().addComponent(panel);
|
91
|
|
- IdentityManager.getAddonIdentity().setOption("plugin-Lagdisplay",
|
92
|
|
- "usealternate", false);
|
93
|
90
|
|
94
|
91
|
ActionManager.addListener(this, CoreActionType.SERVER_GOTPING,
|
95
|
92
|
CoreActionType.SERVER_NOPING, CoreActionType.CLIENT_FRAME_CHANGED,
|
|
@@ -116,7 +113,7 @@ public final class LagDisplayPlugin extends Plugin implements ActionListener,
|
116
|
113
|
for (Object obj : arguments) {
|
117
|
114
|
if (obj instanceof FrameContainer && ((FrameContainer) obj).getServer() != null) {
|
118
|
115
|
useAlternate = ((FrameContainer) obj).getServer().getConfigManager()
|
119
|
|
- .getOptionBool("plugin-Lagdisplay", "usealternate");
|
|
116
|
+ .getOptionBool(getDomain(), "usealternate");
|
120
|
117
|
break;
|
121
|
118
|
}
|
122
|
119
|
}
|
|
@@ -260,7 +257,7 @@ public final class LagDisplayPlugin extends Plugin implements ActionListener,
|
260
|
257
|
final PreferencesCategory cat = new PreferencesCategory("Lag display plugin",
|
261
|
258
|
"");
|
262
|
259
|
cat.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
263
|
|
- "plugin-Lagdisplay", "usealternate",
|
|
260
|
+ getDomain(), "usealternate",
|
264
|
261
|
"Alternate method", "Use an alternate method of determining "
|
265
|
262
|
+ "lag which bypasses bouncers or proxies that may reply."));
|
266
|
263
|
manager.getCategory("Plugins").addSubCategory(cat);
|