1 package zirc.msg ; 2 3 import zirc.base.* ; 4 import zirc.gui.* ; 5 6 19 26 27 public class MSGcodeNonGere extends AbstractMessage 31 { 32 33 private static int lastReplyCode = 0 ; 34 private int replyCode ; 35 36 public MSGcodeNonGere(IRCconnexion _IRCchan, AbstractChatFrame _frm, String _txt, int _replyCode) 37 { 38 super(_IRCchan, _frm, "* " + _txt) ; 39 replyCode = _replyCode ; 40 } 41 42 public String parseMessagePourAffichage(String _txtAffiche) 43 { 44 int pos = _txtAffiche.indexOf(ircChan.GetUser_nickName()) ; 45 return _txtAffiche.substring(pos + 1 + ircChan.GetUser_nickName().length()) ; 46 } 47 48 protected boolean hasSeparator() 49 { 50 boolean ret = false ; 51 52 if (Math.abs(lastReplyCode - replyCode) > 1 && frm == ircChan.GetStatusFrm()) 53 { 54 ret = true ; 55 } 56 57 lastReplyCode = replyCode ; 58 return ret ; 59 60 } 61 62 } 63 | Popular Tags |