Skip to content

Instantly share code, notes, and snippets.

@akihiro
Forked from penguin2716/gray_protected_users.rb
Created December 19, 2012 06:50
Show Gist options
  • Save akihiro/4334917 to your computer and use it in GitHub Desktop.
Save akihiro/4334917 to your computer and use it in GitHub Desktop.
#-*- coding: utf-8
Plugin.create :gray_protected_users do
UserConfig[:protected_users_background_color] ||= [0xcccc,0xcccc,0xcccc]
filter_message_background_color do | mp, array |
if mp.to_message.user[:protected] == true
array = UserConfig[:protected_users_background_color]
end
[mp, array]
end
settings("Protected_Users_Color") do
color("鍵付きユーザの背景色",:protected_users_background_color)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment