Skip to content

Commit

Permalink
Help plugins with User info
Browse files Browse the repository at this point in the history
Thanks to @Raggyx for the suggestion.
  • Loading branch information
thpryrchn committed Jan 16, 2013
1 parent f9e0c22 commit 24f8815
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lib/siriproxy/connection.rb
Expand Up @@ -1519,7 +1519,13 @@ def prep_received_object(object)
puts "[Client - SiriProxy] Created Assistant ID #{@assistant.assistantid} using key [#{self.other_connection.key.id}]"
$keyDao.update_used(self.other_connection.key)
puts "[Client - SiriProxy] OLD Client [#{self.other_connection.client.appleAccountid}] created Assistantid [#{@assistant.assistantid}]"

plugin_manager.user_assistant = @assistant.assistantid
plugin_manager.user_appleid = @oldclient.appleAccountid
plugin_manager.user_fname = @oldclient.fname
plugin_manager.user_nickname = @oldclient.nickname
plugin_manager.user_devicetype = @oldclient.devicetype
plugin_manager.user_deviceOS = @oldclient.deviceOS
plugin_manager.user_lastIP = @oldclient.last_ip
elsif @client!=nil and @client.fname!=nil
@oldclient.fname=@client.fname #in case they ever change this
@oldclient.nickname=@client.nickname #in case they ever change this
Expand All @@ -1534,7 +1540,13 @@ def prep_received_object(object)
puts "[Client - SiriProxy] Created Assistant ID #{@assistant.assistantid} using key [#{self.other_connection.key.id}]"
$keyDao.update_used(self.other_connection.key)
puts "[Client - SiriProxy] OLD Client [#{self.other_connection.client.appleAccountid}] created Assistantid [#{@assistant.assistantid}]"

plugin_manager.user_assistant = @assistant.assistantid
plugin_manager.user_appleid = @oldclient.appleAccountid
plugin_manager.user_fname = @oldclient.fname
plugin_manager.user_nickname = @oldclient.nickname
plugin_manager.user_devicetype = @oldclient.devicetype
plugin_manager.user_deviceOS = @oldclient.deviceOS
plugin_manager.user_lastIP = @oldclient.last_ip
end
end
end
Expand Down

0 comments on commit 24f8815

Please sign in to comment.