IM to avatar storage support
This commit is contained in:
parent
a6f237f722
commit
c6bf820cbf
1 changed files with 10 additions and 0 deletions
|
|
@ -419,6 +419,16 @@ namespace BetterSecondBot.bottypes
|
||||||
base.AfterBotLoginHandler();
|
base.AfterBotLoginHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void BotChatControler(string message, string sender_name, UUID sender_uuid, bool avatar, bool group, UUID group_uuid, bool localchat, bool fromme)
|
||||||
|
{
|
||||||
|
if(avatar == true)
|
||||||
|
{
|
||||||
|
AddAvatarToDB(sender_uuid, sender_name);
|
||||||
|
}
|
||||||
|
base.BotChatControler(message, sender_name, sender_uuid, avatar, group, group_uuid, localchat, fromme);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected void Key2NameEvent(object sender,UUIDNameReplyEventArgs e)
|
protected void Key2NameEvent(object sender,UUIDNameReplyEventArgs e)
|
||||||
{
|
{
|
||||||
foreach(KeyValuePair<UUID,string> pair in e.Names)
|
foreach(KeyValuePair<UUID,string> pair in e.Names)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue