|
@@ -301,6 +301,10 @@ public final class LoggingPlugin extends Plugin implements EventPlugin, Preferen
|
301
|
301
|
case QUERY_CLOSED:
|
302
|
302
|
// ActionManager.processEvent(CoreActionType.QUERY_CLOSED, this);
|
303
|
303
|
query = (Query)arguments[0];
|
|
304
|
+ if (query.getServer() != null) {
|
|
305
|
+ Logger.appError(ErrorLevel.MEDIUM, "Query object has no server ("+thisType.toString()+")", new Exception("Query object has no server ("+thisType.toString()+")""));
|
|
306
|
+ break;
|
|
307
|
+ }
|
304
|
308
|
parser = query.getServer().getParser();
|
305
|
309
|
client = parser.getClientInfo(query.getHost());
|
306
|
310
|
if (client == null) {
|
|
@@ -337,6 +341,10 @@ public final class LoggingPlugin extends Plugin implements EventPlugin, Preferen
|
337
|
341
|
case QUERY_OPENED:
|
338
|
342
|
// ActionManager.processEvent(CoreActionType.QUERY_OPENED, this);
|
339
|
343
|
query = (Query)arguments[0];
|
|
344
|
+ if (query.getServer() != null) {
|
|
345
|
+ Logger.appError(ErrorLevel.MEDIUM, "Query object has no server ("+thisType.toString()+")", new Exception("Query object has no server ("+thisType.toString()+")""));
|
|
346
|
+ break;
|
|
347
|
+ }
|
340
|
348
|
parser = query.getServer().getParser();
|
341
|
349
|
client = parser.getClientInfo(query.getHost());
|
342
|
350
|
if (client == null) {
|
|
@@ -370,6 +378,10 @@ public final class LoggingPlugin extends Plugin implements EventPlugin, Preferen
|
370
|
378
|
case QUERY_SELF_ACTION:
|
371
|
379
|
// ActionManager.processEvent(CoreActionType.QUERY_MESSAGE, this, message);
|
372
|
380
|
query = (Query)arguments[0];
|
|
381
|
+ if (query.getServer() != null) {
|
|
382
|
+ Logger.appError(ErrorLevel.MEDIUM, "Query object has no server ("+thisType.toString()+")", new Exception("Query object has no server ("+thisType.toString()+")""));
|
|
383
|
+ break;
|
|
384
|
+ }
|
373
|
385
|
parser = query.getServer().getParser();
|
374
|
386
|
String overrideNick = "";
|
375
|
387
|
if (thisType == CoreActionType.QUERY_SELF_MESSAGE || thisType == CoreActionType.QUERY_SELF_ACTION) {
|