1 package zirc.msg ; 2 3 import zirc.base.* ; 4 import zirc.gui.* ; 5 6 19 26 27 28 public class MSGPart extends MSGJoin 29 { 30 public MSGPart(IRCconnexion _IRCchan, String _name, String _chan, String _line) 31 { 32 super(_IRCchan, _name, _chan, _line) ; 33 chan = _chan ; 34 } 35 36 protected void setColor(StringBuffer _htmlMsg) 38 { 39 _htmlMsg.insert(0, "<font color=" + vectColors[2] + ">") ; 40 _htmlMsg.append("</font>") ; 41 } 42 43 public String parseMessagePourAffichage(String _txtAffiche) 45 { 46 return user + " a quitte " + chan ; 47 } 48 49 public void reagit() 50 { 51 52 ChatFrame cht = ircChan.GetFenetreDuChan(chan) ; 54 if (cht != null) 55 { 56 57 this.frm = cht ; 59 60 if (ircChan.GetUser_nickName().equalsIgnoreCase(user)) 62 { 63 cht.setDepartAnnonce(true) ; 64 cht.destroy() ; 65 } 66 else 67 { 68 cht.removeUserFromChan(user) ; 69 } 70 } 71 72 } 73 74 protected boolean informeUser() 75 { 76 return false ; 77 } 78 79 } 80 | Popular Tags |