Permalink
Browse files

ClientMessageWaitに対応

  • Loading branch information...
mashiro committed May 18, 2010
1 parent bc7ee02 commit a8b0b70c1900f5c04ba11e8ad1d822a639f5e7e4
Showing with 15 additions and 0 deletions.
  1. +2 −0 Feed.cs
  2. +2 −0 Lists.cs
  3. +9 −0 OtherSource.cs
  4. +2 −0 Timelog.cs
View
@@ -122,6 +122,8 @@ private void SendFeedItem(IFeedDocument doc, IFeedItem item)
String replacedContent = ReplaceFormattedString(ContentFormat, doc, item);
replacedContent = AddIn.ApplyTypableMap(replacedContent, FeedItemToStatus(item));
SendMessage(ChannelName, replacedSender, replacedContent, false);
+
+ AddIn.ClientMessageWait();
}
/// <summary>
View
@@ -101,6 +101,8 @@ private void SendStatus(Status status, Boolean notice)
Boolean friendsCheckRequired = false;
AddIn.CurrentSession.ProcessTimelineStatus(status, ref friendsCheckRequired);
}
+
+ AddIn.ClientMessageWait();
}
/// <summary>
View
@@ -552,5 +552,14 @@ internal String ApplyTypableMap<T>(String str, T value, ITypableMapGenericReposi
return str;
}
+
+ /// <summary>
+ /// 一定時間待つ
+ /// </summary>
+ internal void ClientMessageWait()
+ {
+ if (CurrentSession.Config.ClientMessageWait > 0)
+ Thread.Sleep(CurrentSession.Config.ClientMessageWait);
+ }
}
}
View
@@ -95,6 +95,8 @@ private void SendEntry(Timelog.Entry entry, Boolean notice)
{
String content = AddIn.ApplyTypableMap(entry.Memo, entry, _typableMapCommands.TypableMap);
SendMessage(ChannelName, entry.Author.Id, content, notice);
+
+ AddIn.ClientMessageWait();
}
#region IMessageReceivable

0 comments on commit a8b0b70

Please sign in to comment.