diff options
| author | 2007-02-24 17:28:05 +0000 | |
|---|---|---|
| committer | 2007-02-24 17:28:05 +0000 | |
| commit | 04bd1ff712d43ba4f2d9ec864fc39075cae5208f (patch) | |
| tree | 1da42f7c74abb85592c69f87dd573b967635c54a /data/defscript/default.kvs | |
| parent | *AUTOMATICALLY* updated KVI_SOURCES_DATE variable (diff) | |
| download | KVIrc-04bd1ff712d43ba4f2d9ec864fc39075cae5208f.tar.gz KVIrc-04bd1ff712d43ba4f2d9ec864fc39075cae5208f.tar.bz2 KVIrc-04bd1ff712d43ba4f2d9ec864fc39075cae5208f.zip | |
merged ignore and unignore aliases
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@367 17fca916-40b9-46aa-a4ea-0a15b648b75c
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" |
