[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [task #5594] Add unregister function to the script plugin

From: Marcus Eggenberger
Subject: [Weechat-dev] [task #5594] Add unregister function to the script plugin API
Date: Wed, 24 May 2006 17:14:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060124 Firefox/


                 Summary: Add unregister function to the script plugin API
                 Project: Wee Enhanced Environment for Chat
            Submitted by: egs
            Submitted on: Wednesday 05/24/2006 at 17:14
                Category: plugins
         Should Start On: Wednesday 05/24/2006 at 00:00
   Should be Finished on: Monday 07/24/2006 at 00:00
                Priority: 1 - Later
                  Status: None
                 Privacy: Public
             Assigned to: None
        Percent Complete: 0%
         Originator Name: 
        Originator Email: 
             Open/Closed: Open



This task encourages the introduction of a new function weechat.unregister to
the script plugin API, which unloads the current plugin. At the time beeing
there is no counterpart to the function weechat.register.

This function would be especialy helpful if a plugin cannot operate correctly
due to the lack of a specific requirement.
If a requirement is not met, it should be reported to the user. Therefore the
plugin has to be registered in weechat. At this point the plugin cannot be
automaticaly unloaded though it isn't of any use.

Here's an illustration with a pseudo-script in python-notation what it could
be like:

    weechat.prnt("Requirement <xy> is not met","")
    weechat.prnt("solution: do stuff","")
    weechat.unregister("Plugin has not been registered in weechat")


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]