|
@@ -127,7 +127,13 @@ public class Query extends MessageTarget implements PrivateActionListener,
|
127
|
127
|
|
128
|
128
|
@Override
|
129
|
129
|
protected boolean processNotificationArg(final Object arg, final List<Object> args) {
|
130
|
|
- if (arg instanceof ClientInfo) {
|
|
130
|
+ if (arg instanceof User) {
|
|
131
|
+ final User clientInfo = (User) arg;
|
|
132
|
+ args.add(clientInfo.getNickname());
|
|
133
|
+ args.add(clientInfo.getUsername());
|
|
134
|
+ args.add(clientInfo.getHostname());
|
|
135
|
+ return true;
|
|
136
|
+ } else if (arg instanceof ClientInfo) {
|
131
|
137
|
final ClientInfo clientInfo = (ClientInfo) arg;
|
132
|
138
|
args.add(clientInfo.getNickname());
|
133
|
139
|
args.add(clientInfo.getUsername());
|
|
@@ -151,7 +157,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
|
151
|
157
|
return;
|
152
|
158
|
}
|
153
|
159
|
|
154
|
|
- final ClientInfo client = server.getParser().get().getLocalClient();
|
155
|
160
|
final int maxLineLength = server.getParser().get().getMaxLength("PRIVMSG", getHost());
|
156
|
161
|
|
157
|
162
|
if (maxLineLength >= action.length() + 2) {
|
|
@@ -160,7 +165,7 @@ public class Query extends MessageTarget implements PrivateActionListener,
|
160
|
165
|
final String format = EventUtils.postDisplayable(getEventBus(),
|
161
|
166
|
new QuerySelfActionEvent(this, server.getLocalUser(), action),
|
162
|
167
|
"querySelfAction");
|
163
|
|
- doNotification(format, client, action);
|
|
168
|
+ doNotification(format, server.getLocalUser(), action);
|
164
|
169
|
} else {
|
165
|
170
|
addLine("actionTooLong", action.length());
|
166
|
171
|
}
|