bugguppy - Bugs: bug #283, Have PluginManager spew help if a...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #283: Have PluginManager spew help if a command needs arguments but user gave none

Submitted by:  Svetlana Tkachenko <svetlana>
Submitted on:  Sat 23 Apr 2016 05:19:38 AM EEST  
 
Category: corePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicPercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Planned Release: None

Sat 23 Apr 2016 05:19:38 AM EEST, original submission:

Instead of things like

```python
def handle_command(self, channel, user, cmd, args):
if len(args) < 1:
self.server.doMessage(channel, user + ": Syntax: %schan [-t|-f] <something>" % self.server.config["comchar"])
return
```

or like

```python
def handle_command(self, channel, user, cmd, args):
if len(args) < 1:
return
```

I would like to have us do things like

```python
def handle_command(self, channel, user, cmd, args):
"""Syntax: chan [-t|-f] <something> # -t short topic | -f full topic"""
...
```

With additional means in place for:
- specifying that a command needs arguments (some don't)
- specifying the comchar somewhere in the message
- spewing the help message for '!help cmd' (always; help plugin already does this I believe) and for '!cmd' (if command needs arguments but they're not given)

Svetlana Tkachenko <svetlana>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by svetlana (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray