diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /data/defscript/aliases.kvs | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'data/defscript/aliases.kvs')
-rw-r--r-- | data/defscript/aliases.kvs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/data/defscript/aliases.kvs b/data/defscript/aliases.kvs index 5d8d7299..e8845ba3 100644 --- a/data/defscript/aliases.kvs +++ b/data/defscript/aliases.kvs @@ -234,9 +234,9 @@ alias(kb) { if(%nick) { - %mask = $mask(%nick,$option(uintDefaultBanType)); + %tqmask = $tqmask(%nick,$option(uintDefaultBanType)); - if(!%mask)%mask = %nick; # plain ban + if(!%tqmask)%tqmask = %nick; # plain ban %reason = $1- #if(!%reason)%reason = "You're not welcome here!" @@ -250,8 +250,8 @@ alias(kb) # kick %nick %reason - if($chan.isOp(%nick))%raw2 = "mode $target -o+b %nick %mask" - else %raw2 = "mode $target +b %mask" + if($chan.isOp(%nick))%raw2 = "mode $target -o+b %nick %tqmask" + else %raw2 = "mode $target +b %tqmask" raw -q %raw2$cr$lf%raw } @@ -484,28 +484,28 @@ alias(awayall) alias(notify) { # 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 + # For the specified nick and uses the specified tqmask + # If no tqmask is specified , a default one is constructed # Then the "notify" property is set for the user if(!$0) { echo $tr("Usage:") - echo " /notify <nick> [mask]" + echo " /notify <nick> [tqmask]" halt } - # Get the mask + # Get the tqmask - %mask = $1 + %tqmask = $1 - # no mask specified ? build it + # no tqmask specified ? build it - if(!%mask)%mask = $0!*@* + if(!%tqmask)%tqmask = $0!*@* # Now add the user (but do not replace old entries) - reguser.add -f -q $0 %mask + reguser.add -f -q $0 %tqmask # Merge the notify property part with the old one (if any) @@ -526,8 +526,8 @@ alias(notify) alias(ignore) { # 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 + # For the specified nick and uses the specified tqmask + # If no tqmask is specified , a default one is constructed # Then the "ignore" property is set for the user to 1 if(!$0) @@ -539,7 +539,7 @@ alias(ignore) # Now add the user (but do not replace old entries) - reguser.add $0 $mask($0,15); + reguser.add $0 $tqmask($0,15); # And finally set the property (use -n so the notify lists will be restarted) # Check if ignore or unignore the user |