Browse Source

Fix source of notice events.

We were raising notices as all coming from the local user, not
the person that sent the notice. This is... unideal.
pull/600/head
Chris Smith 9 years ago
parent
commit
f0019ffb26
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/ServerEventHandler.java

+ 1
- 1
src/com/dmdirc/ServerEventHandler.java View File

@@ -218,7 +218,7 @@ public class ServerEventHandler extends EventHandler {
218 218
 
219 219
     @Handler
220 220
     public void onPrivateNotice(final PrivateNoticeEvent event) {
221
-        eventBus.publishAsync(new ServerNoticeEvent(owner, owner.getLocalUser().get(),
221
+        eventBus.publishAsync(new ServerNoticeEvent(owner, owner.getUser(event.getHost()),
222 222
                 event.getMessage()));
223 223
     }
224 224
 

Loading…
Cancel
Save