소스 검색

Always provide a 'kicker' client.

When we moved to events, we stopped passing null in place of clients.
Instead, fake clients should be used. Apparently ProcessKick wasn't
properly updated.

Fixes issue #100
pull/101/head
Chris Smith 8 년 전
부모
커밋
c0f6cf18e8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java

+ 2
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java 파일 보기

@@ -90,7 +90,7 @@ public class ProcessKick extends IRCProcessor {
90 90
                 // callErrorInfo(new ParserError(ParserError.ERROR_WARNING, "Got kick for channel ("+token[2]+") for a non-existant user. [User: "+token[0]+"]", parser.getLastLine()));
91 91
                 return;
92 92
             }
93
-            final IRCChannelClientInfo iChannelKicker = iChannel.getChannelClient(token[0]);
93
+            final IRCChannelClientInfo iChannelKicker = iChannel.getChannelClient(token[0], true);
94 94
             if (parser.getRemoveAfterCallback()) {
95 95
                 callDebugInfo(IRCParser.DEBUG_INFO, "processKick: calling kick before. {%s | %s | %s | %s | %s}", iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
96 96
                 callChannelKick(iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
@@ -114,7 +114,7 @@ public class ProcessKick extends IRCProcessor {
114 114
      *
115 115
      * @param cChannel Channel where the kick took place
116 116
      * @param cKickedClient ChannelClient that got kicked
117
-     * @param cKickedByClient ChannelClient that did the kicking (may be null if server)
117
+     * @param cKickedByClient ChannelClient that did the kicking
118 118
      * @param sReason Reason for kick (may be "")
119 119
      * @param sKickedByHost Hostname of Kicker (or servername)
120 120
      */

Loading…
취소
저장