Exemplo n.º 1
0
 public Message(SystemCommand s)
 {
     OpCode        = s.OpCode;
     Data          = s.Data;
     Body          = Data["message"].ToString();
     sourceChannel = s.sourceChannel;
     sourceUser    = s.sourceUser;
 }
Exemplo n.º 2
0
 internal void Join()
 {
     IO.SystemCommand JoinCmd = new IO.SystemCommand();
     JoinCmd.OpCode          = "JCH";
     JoinCmd.Data["channel"] = Key;
     JoinCmd.Send();
     isJoined = true;
     InitializeChannelLogs();
 }
Exemplo n.º 3
0
 internal void Ban(Channel c)
 {
     if (Core.OwnUser.IsChannelOp(c))
     {
         IO.SystemCommand s = new IO.SystemCommand();
         s.OpCode            = "CBU";
         s.Data["character"] = Name;
         s.Data["channel"]   = c.Key;
         s.Send();
     }
 }
Exemplo n.º 4
0
 internal void Timeout(Channel c, int duration)
 {
     if (Core.OwnUser.IsChannelOp(c))
     {
         IO.SystemCommand s = new IO.SystemCommand();
         s.OpCode            = "CTU";
         s.Data["character"] = Name;
         s.Data["channel"]   = c.Key;
         s.Data["length"]    = duration;
         s.Send();
     }
 }
Exemplo n.º 5
0
 internal void Leave()
 {
     IO.SystemCommand LeaveCmd = new IO.SystemCommand();
     LeaveCmd.OpCode          = "LCH";
     LeaveCmd.Data["channel"] = Key;
     LeaveCmd.Send();
     isJoined = false;
     dataLock = false;
     ChannelLog.Dispose();
     ChannelModLog.Dispose();
     //CogitoUI.chatUI.chatTabs.EnsureNotVisible(chanTab);
 }