[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:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 |
URL:
<http://savannah.nongnu.org/task/?func=detailitem&item_id=5594>
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
_______________________________________________________
Details:
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.register(NAME, VERSION, ENDFUNCTION, DESCRIPTION)
try:
checkRequirements()
except:
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:
<http://savannah.nongnu.org/task/?func=detailitem&item_id=5594>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Weechat-dev] [task #5594] Add unregister function to the script plugin API,
Marcus Eggenberger <=