Skip to content

Instantly share code, notes, and snippets.

@naoto
Created April 23, 2010 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save naoto/376246 to your computer and use it in GitHub Desktop.
Save naoto/376246 to your computer and use it in GitHub Desktop.
TwitterIrcGateway の UserStream 設定時の BroadcastUpdate を中止する DLR

TwitterIRCGateway

  1. Twitter に UserStream 機能が搭載されたことにより TwitterIRCGateway にも UserStream AddIn が作られました. 2. しかし,現状では BroadcastUpdate を false にしもすべてのチャンネルにエコーされてしまいます.
  2. それを回避する為に self_drop.rb を書きました.

Usage

  1. $TIG_PATH/Configs/$USER/Scripts を作成する.
  2. そこに self_drop.rb を配置
  3. IRC Client 等から #Console につなぎ DLR コンテキストに入る
  4. そこで reload を行う

以上で, BroadcastUpdate が false となる

Session.pre_send_message_timeline_status do |sender,e|
if e.status.user.ScreenName.to_s == sender.TwitterUser.ScreenName.to_s
e.cancel = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment