1 package zirc.msg ; 2 3 import zirc.base.* ; 4 import zirc.gui.* ; 5 6 19 26 27 28 public class MSGpingpong extends AbstractMessage 29 { 30 31 public MSGpingpong(IRCconnexion _IRCchan, AbstractChatFrame _frm, String _txt) 32 { 33 super(_IRCchan, _frm, _txt) ; 34 35 } 36 37 protected void setColor(StringBuffer _htmlMsg) 39 { 40 _htmlMsg.insert(0, "<font color=" + vectColors[3] + ">") ; 41 _htmlMsg.append("</font>") ; 42 } 43 44 public void reagit() 46 { 47 envoiCommande(Message.replaceFirst("PING", "PONG")) ; 49 } 50 51 public String parseMessagePourAffichage(String _txtAffiche) 52 { 53 return "Ping? Pong!" ; 54 } 55 56 protected boolean informeUser() 57 { 58 return false ; 59 } 60 61 } 62 | Popular Tags |