summaryrefslogtreecommitdiffstats
path: root/src/modules/sharedfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sharedfile')
-rw-r--r--src/modules/sharedfile/libkvisharedfile.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/sharedfile/libkvisharedfile.cpp b/src/modules/sharedfile/libkvisharedfile.cpp
index 446879a6..712d1205 100644
--- a/src/modules/sharedfile/libkvisharedfile.cpp
+++ b/src/modules/sharedfile/libkvisharedfile.cpp
@@ -52,7 +52,7 @@ extern KVIRC_API KviSharedFilesManager * g_pSharedFilesManager;
@short:
Adds a file sharedfile
@syntax:
- sharedfile.add [-t=<timeout:integer>] [-n=<visible name>] <filename> [user_tqmask]
+ sharedfile.add [-t=<timeout:integer>] [-n=<visible name>] <filename> [user_mask]
@switches:
!sw: -t=<timeout> | --timeout=<timeout>
Specified the timeout after that the share will be automatically removed
@@ -61,8 +61,8 @@ extern KVIRC_API KviSharedFilesManager * g_pSharedFilesManager;
@description:
Adds <filename> to the list of the active shared files.
The users will be able to request the file via [cmd]dcc.get[/cmd].
- If [user_tqmask] is specified , the access to the file is limited
- to the users that match this tqmask, otherwise the tqmask will
+ If [user_mask] is specified , the access to the file is limited
+ to the users that match this mask, otherwise the mask will
be automatically set to '*!*@*'.[br]
If the 't' switch is used, the sharedfile will be removed after
<timeout> seconds. If the 'n' switch is used, the sharedfile
@@ -79,7 +79,7 @@ static bool sharedfile_kvs_cmd_add(KviKvsModuleCommandCall * c)
TQString szFileName,szUserMask;
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("filename",KVS_PT_NONEMPTYSTRING,0,szFileName)
- KVSM_PARAMETER("user_tqmask",KVS_PT_NONEMPTYSTRING,KVS_PF_OPTIONAL,szUserMask)
+ KVSM_PARAMETER("user_mask",KVS_PT_NONEMPTYSTRING,KVS_PF_OPTIONAL,szUserMask)
KVSM_PARAMETERS_END(c)
if(!KviFileUtils::isReadable(szFileName))
@@ -92,7 +92,7 @@ static bool sharedfile_kvs_cmd_add(KviKvsModuleCommandCall * c)
KviIrcMask u(szUserMask);
TQString szm;
- u.tqmask(szm);
+ u.mask(szm);
kvs_int_t timeout = 0;
@@ -138,9 +138,9 @@ static bool sharedfile_kvs_cmd_add(KviKvsModuleCommandCall * c)
@short:
Removes a shared file
@syntax:
- sharedfile.remove <visible name:string> <user tqmask:string> [filesize:integer]
+ sharedfile.remove <visible name:string> <user mask:string> [filesize:integer]
@description:
- Removes the shared file that matches <visible name> and <user tqmask>.
+ Removes the shared file that matches <visible name> and <user mask>.
If [filesize] is specified, then it must be matched by the entry
to be removed.
@seealso:
@@ -153,12 +153,12 @@ static bool sharedfile_kvs_cmd_remove(KviKvsModuleCommandCall * c)
kvs_uint_t uSize;
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("visible_name",KVS_PT_NONEMPTYSTRING,0,szVisibleName)
- KVSM_PARAMETER("user_tqmask",KVS_PT_NONEMPTYSTRING,0,szUserMask)
+ KVSM_PARAMETER("user_mask",KVS_PT_NONEMPTYSTRING,0,szUserMask)
KVSM_PARAMETER("filesize",KVS_PT_UINT,KVS_PF_OPTIONAL,uSize)
KVSM_PARAMETERS_END(c)
if(!g_pSharedFilesManager->removeSharedFile(szVisibleName,szUserMask,uSize))
- c->warning(__tr2qs_ctx("No sharedfile with visible name '%Q' and user tqmask '%Q'","sharedfile"),&szVisibleName,&szUserMask);
+ c->warning(__tr2qs_ctx("No sharedfile with visible name '%Q' and user mask '%Q'","sharedfile"),&szVisibleName,&szUserMask);
return true;
}