Created
October 20, 2009 02:39
-
-
Save mayuki/213944 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import clr | |
| from Misuzilla.Applications.TwitterIrcGateway import Status, Statuses, User, Users, Utility | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns import IConfiguration | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import ConsoleAddIn, Console, Context | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper | |
| def OnPreSendUpdateStatus(sender, e): | |
| e.Text = e.Text + " (footer text)" | |
| # 後片付け | |
| def OnBeforeUnload(sender, e): | |
| Session.PreSendUpdateStatus -= OnPreSendUpdateStatus | |
| Session.PreSendUpdateStatus += OnPreSendUpdateStatus | |
| Session.AddInManager.GetAddIn[DLRIntegrationAddIn]().BeforeUnload += OnBeforeUnload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment