Skip to content

Instantly share code, notes, and snippets.

View akihiro's full-sized avatar

Hiroaki Mizuguchi akihiro

View GitHub Profile
#-*- 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