Beispiel #1
0
        public static byte[] PerMsgBotTo(ib0tClient userobj)
        {
            String name = Settings.Get <String>("bot");
            String text = Settings.VERSION;

            return(WebSockets.Html5TextPacket("PERSMSG:" + name.Length + "," + text.Length + ":" + name + text, userobj.WebCredentials.OldProto));
        }
Beispiel #2
0
 public static byte[] ScribbleHead(ib0tClient userobj, String sender, int count, String height)
 {
     return(WebSockets.Html5TextPacket("SCRIBBLE_HEAD:" + sender.Length + "," +
                                       count.ToString().Length + "," +
                                       height.Length +
                                       ":" + sender + count + height,
                                       userobj.WebCredentials.OldProto));
 }
Beispiel #3
0
        public static byte[] AvatarTo(ib0tClient userobj, String name, byte[] av)
        {
            String str   = "AVATAR:";
            String avstr = Convert.ToBase64String(av);

            str += name.Length + "," + avstr.Length + ":";
            str += name + avstr;
            byte[] packet = WebSockets.Html5TextPacket(str, userobj.WebCredentials.OldProto);
            return(packet);
        }
Beispiel #4
0
        public static byte[] EmoteTo(ib0tClient userobj, String name, String text)
        {
            String str = text;

            if (str.Length > 300)
            {
                str = str.Substring(0, 300);
            }

            return(WebSockets.Html5TextPacket("EMOTE:" + name.Length + "," + str.Length + ":" + name + str, userobj.WebCredentials.OldProto));
        }
Beispiel #5
0
        public static byte[] NoSuchTo(ib0tClient userobj, String text)
        {
            String str = text;

            if (str.Length > 300)
            {
                str = str.Substring(0, 300);
            }

            return(WebSockets.Html5TextPacket("NOSUCH:" + str.Length + ":" + str, userobj.WebCredentials.OldProto));
        }
Beispiel #6
0
 public static byte[] AvatarClearTo(ib0tClient userobj, String name)
 {
     return(WebSockets.Html5TextPacket("AVATAR:" + name.Length + ":" + name, userobj.WebCredentials.OldProto));
 }
Beispiel #7
0
 public static byte[] LagTo(ib0tClient userobj, String args)
 {
     return(WebSockets.Html5TextPacket("LAG:" + args.Length + ":" + args, userobj.WebCredentials.OldProto));
 }
Beispiel #8
0
 public static byte[] PersMsgTo(ib0tClient userobj, String name, String text)
 {
     return(WebSockets.Html5TextPacket("PERSMSG:" + name.Length + "," + text.Length + ":" + name + text, userobj.WebCredentials.OldProto));
 }
Beispiel #9
0
 public static byte[] IgnoringTo(ib0tClient userobj, String name)
 {
     return(WebSockets.Html5TextPacket("IGNORING:" + name.Length + ":" + name, userobj.WebCredentials.OldProto));
 }
Beispiel #10
0
 public static byte[] OfflineTo(ib0tClient userobj, String name)
 {
     return(WebSockets.Html5TextPacket("OFFLINE:" + name.Length + ":" + name, userobj.WebCredentials.OldProto));
 }
Beispiel #11
0
 public static byte[] TopicFirstTo(ib0tClient userobj, String text)
 {
     return(WebSockets.Html5TextPacket("TOPIC_FIRST:" + text.Length + ":" + text, userobj.WebCredentials.OldProto));
 }
Beispiel #12
0
 public static byte[] UrlTo(ib0tClient userobj, String addr, String tag)
 {
     return(WebSockets.Html5TextPacket("URL:" + addr.Length + "," + tag.Length + ":" + addr + tag, userobj.WebCredentials.OldProto));
 }
Beispiel #13
0
 public static byte[] FontTo(ib0tClient userobj, String name, int col1, int col2)
 {
     return(WebSockets.Html5TextPacket("FONT:" + name.Length + "," + col1.ToString().Length + "," + col2.ToString().Length + ":" + name + col1.ToString() + col2.ToString(), userobj.WebCredentials.OldProto));
 }
Beispiel #14
0
 public static byte[] JoinTo(ib0tClient userobj, String name, ILevel level)
 {
     return(WebSockets.Html5TextPacket("JOIN:" + name.Length + ",1:" + name + ((byte)level), userobj.WebCredentials.OldProto));
 }
Beispiel #15
0
 public static byte[] UserlistEndTo(ib0tClient userobj)
 {
     return(WebSockets.Html5TextPacket("USERLIST_END:", userobj.WebCredentials.OldProto));
 }
Beispiel #16
0
 public static byte[] ScribbleBlock(ib0tClient userobj, String text)
 {
     return(WebSockets.Html5TextPacket("SCRIBBLE_BLOCK:" + text.Length + ":" + text, userobj.WebCredentials.OldProto));
 }