diff options
Diffstat (limited to 'data/defscript/default.kvs')
| -rw-r--r-- | data/defscript/default.kvs | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/data/defscript/default.kvs b/data/defscript/default.kvs index cba4d58ba..cb7af2aa1 100644 --- a/data/defscript/default.kvs +++ b/data/defscript/default.kvs @@ -579,7 +579,7 @@ alias(ignore) if(!$0) { echo $tr("Usage:") - echo " /ignore <nick> [mask]" + echo " /ignore [-r] <nick> [mask]" halt } @@ -596,40 +596,13 @@ alias(ignore) reguser.add -f -q $0 %mask # And finally set the property (use -n so the notify lists will be restarted) + # Check if ignore or unignore the user - reguser.setIgnoreEnabled $0 true - reguser.setIgnoreFlags -pct $0 -} - -alias(unignore) -{ - # This one adds a registered users database entry - # For the specified nick and uses the specified mask - # If no mask is specified , a default one is constructed - # Then the "ignore" property is set for the user to 0 - - if(!$0) + if(!$sw(r)) { - echo $tr("Usage:") - echo " /unignore <nick> [mask]" - halt - } - - # Get the mask - - %mask = $1 - - # no mask specified ? build it - - if(!%mask)%mask = $0!*@* - - # Now add the user (but do not replace old entries) - - reguser.add -f -q $0 %mask - - # And finally set the property (use -n so the notify lists will be restarted) - - reguser.setIgnoreEnabled $0 false + reguser.setIgnoreEnabled $0 true + reguser.setIgnoreFlags -pct $0 + } else reguser.setIgnoreEnabled $0 false } # Dcc...people commonly use "dcc send" instead of "dcc.send" |
