| 18 | | AIListContact *contact = contactLookupFromBuddy(purple_find_buddy(acct, name)); |
|---|
| 19 | | [contact setStatusObject:[NSNumber numberWithInt:typingState] forKey:KEY_TYPING notify:NotifyNow]; |
|---|
| | 23 | AIListContact *contact = contactLookupFromBuddy(purple_find_buddy(acct, name)); |
|---|
| | 24 | // [contact setStatusObject:[NSNumber numberWithInt:typingState] forKey:KEY_TYPING notify:NotifyNow]; |
|---|
| | 25 | //Open a new chat window with this contact |
|---|
| | 26 | NSObject <AIAdium> *adium = [AIObject sharedAdiumInstance]; |
|---|
| | 27 | if(adium != nil) |
|---|
| | 28 | { |
|---|
| | 29 | AIChat* chat = [[adium chatController] existingChatWithContact:contact]; |
|---|
| | 30 | if((chat == nil)&&(typingState != AINotTyping)) |
|---|
| | 31 | { |
|---|
| | 32 | [[adium contentController] displayEvent:@"You feel a disturbance in the Force" |
|---|
| | 33 | ofType:@"psychicEvent" |
|---|
| | 34 | inChat:((AIChat *)[[adium chatController] chatWithContact:contact])]; |
|---|
| | 35 | } |
|---|
| | 36 | } |
|---|