public static void SendPrivate(HumanQQNumber humanQQ, string content) { var qq = humanQQ.QQ; lock (typeof(Messenger)) { if (PrivateMessageDictionary.ContainsKey(qq)) { PrivateMessageDictionary[qq] += "\r\n" + content; } else { PrivateMessageDictionary[qq] = content; } } }
public static void SendToPrivate(this string content, HumanQQNumber qq) { SendPrivate(qq, content); }