Miranda IM

Results 1 to 4 of 4

Thread: Deletion of the contacts

  1. #1
    Join Date
    February 2008
    Posts
    214

    Deletion of the contacts

    In my proto plugin I hook ME_DB_CONTACT_DELETED event and delete the contact from the Server. It works fine.
    Now I would like to add an option, if it is chosen, then contact shouldn't be deleted from the server (so, it should work in the same when, like when user checked the checkbox on deletion confirmation message).
    But if I add db setting CList/Hidden=1, then anyway Miranda deletes the contact (and during next synchronization my plugin adds it back).
    How should I handle such case?

  2. #2
    Join Date
    February 2008
    Posts
    214
    I've expected that if I would return in ContactDeleted function result <> 0, then Miranda wouldn't delete contact.. but it deletes it anyway...
    Probably I can mark that checkbox somehow? so it will be chosen by default?

  3. #3
    Join Date
    June 2005
    Posts
    11,839
    Noo, never return non 0 value out of the hook it will mess up things big time.

    You cannot prevent contact from being deleted within current Miranda.

  4. #4
    Join Date
    February 2008
    Posts
    214
    Is there any hope that it will be supported in the future?

    In the meantime, can I do something that checkbox on deletion warning message will be marked for my protocol? Can I know handle of this checkbox somehow?

Similar Threads

  1. Replies: 4
    Last Post: 28 Oct 2008, 2:29 AM
  2. Password protect contact deletion
    By SpinalBlood in forum Technical Support
    Replies: 4
    Last Post: 10 Jul 2007, 10:56 PM
  3. Contact deletion
    By SpinalBlood in forum Feature Requests
    Replies: 1
    Last Post: 30 Jun 2007, 10:37 PM
  4. Replies: 12
    Last Post: 26 Dec 2006, 4:11 PM
  5. Help with group deletion, they keep coming back!
    By JVAGO in forum Technical Support
    Replies: 0
    Last Post: 30 Dec 2005, 11:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •