Skip to content

Instantly share code, notes, and snippets.

@mashiro
Created April 14, 2010 09:56
Show Gist options
  • Select an option

  • Save mashiro/365633 to your computer and use it in GitHub Desktop.

Select an option

Save mashiro/365633 to your computer and use it in GitHub Desktop.
import sys
import clr
import re
#from System.Windows.Forms import *
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper
def OnPreSendMessageTimelineStatus(sender, e):
e.Text = e.Text + ' <img class="twitter_icon" src="%s" />' % e.Status.User.ProfileImageUrl
def OnBeforeUnload(sender, e):
CurrentSession.PreSendMessageTimelineStatus -= OnPreSendMessageTimelineStatus
CurrentSession.PreSendMessageTimelineStatus += OnPreSendMessageTimelineStatus
CurrentSession.AddInManager.GetAddIn(DLRIntegrationAddIn).BeforeUnload += OnBeforeUnload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment