aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvilib
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib')
-rw-r--r--src/kvilib/config/kvi_shortcuts.h8
-rw-r--r--src/kvilib/core/KviError.cpp34
-rw-r--r--src/kvilib/core/KviMemory.cpp6
-rw-r--r--src/kvilib/ext/KviCryptEngine.cpp82
-rw-r--r--src/kvilib/ext/KviRegisteredUserDataBase.cpp22
-rw-r--r--src/kvilib/ext/KviSharedFilesManager.cpp6
-rw-r--r--src/kvilib/irc/KviAvatar.cpp22
-rw-r--r--src/kvilib/irc/KviIrcMask.cpp30
-rw-r--r--src/kvilib/locale/KviLocale.cpp4
-rw-r--r--src/kvilib/locale/KviMessageCatalogue.cpp10
-rw-r--r--src/kvilib/net/KviDnsResolver.cpp2
-rw-r--r--src/kvilib/net/KviHttpRequest.cpp4
-rw-r--r--src/kvilib/system/KviThread.cpp12
13 files changed, 121 insertions, 121 deletions
diff --git a/src/kvilib/config/kvi_shortcuts.h b/src/kvilib/config/kvi_shortcuts.h
index a45b9a558..ce41d83dd 100644
--- a/src/kvilib/config/kvi_shortcuts.h
+++ b/src/kvilib/config/kvi_shortcuts.h
@@ -221,10 +221,10 @@
@short:
The list of the common keyboard shortcuts
@body:
- This list contains the key sequences associated to some common actions (like selecting text, etc). Since KVIrc 4.2 the shortcuts are dinamic:
+ This list contains the key sequences associated to some common actions (e.g. selecting text). Since KVIrc 4.2 the shortcuts are dynamic:
[ul]
[li]more shortcuts can trigger the same actions: Cut is both Ctrl+X and Shift+Del[/li]
- [li]shortcuts can be adapted to the os: Help is F1 under Windows and Linux, Ctrl+? on Mac OSX[/li]
+ [li]shortcuts can be adapted to the OS: Help is F1 under Windows and Linux, Ctrl+? on Mac OSX[/li]
[/ul]
A full list of available combinations is available at the [anchorlink:http://doc.qt.nokia.com/latest/qkeysequence.html#standard-shortcuts] Qt documentation[/anchorlink]
[br]
@@ -300,7 +300,7 @@
[b]Ctrl+Backspace:[/b] Delete last word[br]
[b]Ctrl+<digit>:[/b] Script accelerators (see OnAccelKeyPressed)[br]
[b]F2-F12, Shift+(F1-F12):[/b] Script accelerators (see OnAccelKeyPressed)[br]
- [b]Ctrl+B:[/b] nsert the 'bold' mIRC text control character[br]
+ [b]Ctrl+B:[/b] Insert the 'bold' mIRC text control character[br]
[b]Ctrl+K:[/b] Insert the 'color' mIRC text control character[br]
[b]Ctrl+R:[/b] Insert the 'reverse' mIRC text control character[br]
[b]Ctrl+U:[/b] Insert the 'underline' mIRC text control character[br]
@@ -317,7 +317,7 @@
[b]RightArrow:[/b] Move the cursor to the right[br]
[b]Shift+LeftArrow:[/b] Move the selection to the left[br]
[b]Shift+RightArrow:[/b] Move the selection to the right[br]
- [b]Alt+Enter:[/b] Show/hide the multiline editor[br]
+ [b]Alt+Enter:[/b] Show/hide the multi-line editor[br]
[b]Ctrl+Enter:[/b] Send message as plain text, ignoring / commands[br]
[b]Shift+Enter:[/b] Send message as a kvs command[br]
[b]Alt+<numeric_sequence>:[/b] Insert the character by ASCII/Unicode code[br]
diff --git a/src/kvilib/core/KviError.cpp b/src/kvilib/core/KviError.cpp
index 0084ade50..8e22498b4 100644
--- a/src/kvilib/core/KviError.cpp
+++ b/src/kvilib/core/KviError.cpp
@@ -70,20 +70,20 @@ const char * g_errorTable[KviError::ErrorCount]=
__tr_no_lookup("Unexpected character"), // 020: unexpectedCharacter
__tr_no_lookup("Unknown operator"), // 021: unknownOperator
__tr_no_lookup("No host to resolve"), // 022
- __tr_no_lookup("(DNS Internal) Unsupported address family"), // 023
+ __tr_no_lookup("(DNS internal) Unsupported address family"), // 023
__tr_no_lookup("Valid name but the host has no IP address"), // 024
- __tr_no_lookup("Unrecoverable nameserver error (crashed ?)"), // 025
- __tr_no_lookup("Dns temporaneous fault (try again)"), // 026
- __tr_no_lookup("(DNS Internal) Bad flags"), // 027
- __tr_no_lookup("(DNS Internal) Out of memory"), // 028
- __tr_no_lookup("(DNS Internal) Service not supported"), // 029
+ __tr_no_lookup("Unrecoverable nameserver error (crashed?)"), // 025
+ __tr_no_lookup("DNS temporary fault (try again)"), // 026
+ __tr_no_lookup("(DNS internal) Bad flags"), // 027
+ __tr_no_lookup("(DNS internal) Out of memory"), // 028
+ __tr_no_lookup("(DNS internal) Service not supported"), // 029
__tr_no_lookup("Unknown node (host not found)"), // 030
- __tr_no_lookup("(DNS Internal) Unsupported socket type"), // 031
- __tr_no_lookup("Dns query failed"), // 032
- __tr_no_lookup("This KVIrc executable has no IPV6 support"), // 033
+ __tr_no_lookup("(DNS internal) Unsupported socket type"), // 031
+ __tr_no_lookup("DNS query failed"), // 032
+ __tr_no_lookup("This KVIrc executable has no IPv6 support"), // 033
__tr_no_lookup("Host not found"), // 034
- __tr_no_lookup("(DNS Internal) IPC failure (slave data corrupted)"), // 035
- __tr_no_lookup("Another connection in progress"), // 036
+ __tr_no_lookup("(DNS internal) IPC failure (slave data corrupted)"), // 035
+ __tr_no_lookup("Another connection is in progress"), // 036
__tr_no_lookup("Invalid IP address"), // 037
__tr_no_lookup("Socket creation failed"), // 038
__tr_no_lookup("Failed to put the socket in non blocking mode"), // 039
@@ -96,8 +96,8 @@ const char * g_errorTable[KviError::ErrorCount]=
__tr_no_lookup("Broken pipe"), // 046
__tr_no_lookup("Invalid proxy address"), // 047
__tr_no_lookup("Remote end has closed the connection"), // 048
- __tr_no_lookup("Invalid irc context id"), // 049
- __tr_no_lookup("Error in loading module"), // 050
+ __tr_no_lookup("Invalid IRC context id"), // 049
+ __tr_no_lookup("Error loading module"), // 050
__tr_no_lookup("No such module command"), // 051
__tr_no_lookup("No such module function"), // 052
__tr_no_lookup("Left operand is not a dictionary reference"), // 053
@@ -117,10 +117,10 @@ const char * g_errorTable[KviError::ErrorCount]=
__tr_no_lookup("The SOCKSv4 protocol lacks IPv6 support"), // 067
__tr_no_lookup("Unrecognized proxy reply"), // 068
__tr_no_lookup("Proxy response: auth failed: access denied"),
- __tr_no_lookup("Proxy response: No acceptable auth method: request rejected"),
+ __tr_no_lookup("Proxy response: no acceptable auth method: request rejected"),
__tr_no_lookup("Proxy response: request failed"),
- __tr_no_lookup("Proxy response: ident failed"),
- __tr_no_lookup("Proxy response: ident not matching"),
+ __tr_no_lookup("Proxy response: Ident failed"),
+ __tr_no_lookup("Proxy response: Ident not matching"),
__tr_no_lookup("Proxy response: general SOCKS failure"),
__tr_no_lookup("Proxy response: connection not allowed"),
__tr_no_lookup("Proxy response: network unreachable"),
@@ -149,7 +149,7 @@ const char * g_errorTable[KviError::ErrorCount]=
__tr_no_lookup("Unexpected characters in array index"),
__tr_no_lookup("Unexpected end in expression"),
__tr_no_lookup("Unexpected end in array index"),
- __tr_no_lookup("Connection thru HTTP proxy failed"),
+ __tr_no_lookup("Connection through HTTP proxy failed"),
__tr_no_lookup("Case, match, regexp, default or break keyword expected"),
__tr_no_lookup("Access denied"),
__tr_no_lookup("Address already in use"),
diff --git a/src/kvilib/core/KviMemory.cpp b/src/kvilib/core/KviMemory.cpp
index a7de65f44..c122002ad 100644
--- a/src/kvilib/core/KviMemory.cpp
+++ b/src/kvilib/core/KviMemory.cpp
@@ -113,7 +113,7 @@ namespace KviMemory
}
e = e->next;
}
- fprintf(stderr,"Attempt to realloc an inexistant pointer (%p) (called from %p (%p))\n",ptr,__builtin_return_address(1),__builtin_return_address(2));
+ fprintf(stderr,"Attempt to realloc a non-existent pointer (%p) (called from %p (%p))\n",ptr,__builtin_return_address(1),__builtin_return_address(2));
return realloc(ptr,size);
}
@@ -142,7 +142,7 @@ namespace KviMemory
}
e = e->next;
}
- fprintf(stderr,"Attempt to free an inexistant pointer (%p) (called from %p (%p))\n",ptr,__builtin_return_address(1),__builtin_return_address(2));
+ fprintf(stderr,"Attempt to free a non-existent pointer (%p) (called from %p (%p))\n",ptr,__builtin_return_address(1),__builtin_return_address(2));
}
void kvi_memory_profile() __attribute__((destructor));
@@ -192,7 +192,7 @@ namespace KviMemory
void outOfMemory()
{
//What a cool message :)
- fprintf(stderr,"Virtual memory exhausted in malloc call....bye!\n");
+ fprintf(stderr,"Virtual memory exhausted in malloc call... bye!\n");
exit(-1);
}
diff --git a/src/kvilib/ext/KviCryptEngine.cpp b/src/kvilib/ext/KviCryptEngine.cpp
index 6ec745cbd..fcc9c63ae 100644
--- a/src/kvilib/ext/KviCryptEngine.cpp
+++ b/src/kvilib/ext/KviCryptEngine.cpp
@@ -36,7 +36,7 @@
@type:
generic
@keyterms:
- cryptography, privacy, private key, text transformation
+ cryptography, encryption, privacy, private key, text transformation
@title:
Cryptography and text transformation
@short:
@@ -45,62 +45,62 @@
[big]Introduction[/big][br]
Well, there is a concrete background noise about security around the net.
And I've thought that adding a little cryptography support to KVIrc wasn't
- a bad idea. So I've first comed out with the "crypt engines", that
- allowed to have secure conversations on channels, queries and dcc chats;
+ a bad idea. So I first came up with the "crypt engines", that
+ allowed secure conversations in channels, queries and DCC chats;
then found out that the realized structure was perfect to be "generalized"
into "text transformation" support.[br]
[big]The concept[/big][br]
In few words, the "text transformation" engine is a layer between the user and the
IRC connection. You type some text in the input line of a query window (for example),
the engine transforms the text in some way and then sends it to the remote target.
- The trick works also in the reverse way: some data come from the remote target,
- the engine retransforms the text in some other way and displays it to the local user.[br]
+ The trick works also in the reverse way: some data comes from the remote target,
+ the engine re-transforms the text in some other way and displays it to the local user.[br]
The "incoming" transformation is usually the inverse of the "outgoing" one, but it
is not mandatory. It will become clear in few sentences that some engines will do no "incoming"
- transformation at all. The original use of the transformation engines was to crypt the
+ transformation at all. The original use of the transformation engines was to encrypt the
outgoing data and to decrypt the incoming data; anyway, the engines can perform
- other funky tasks. One of them is remapping the local charset to a "standardized" one
+ other funky tasks. One of them is remapping the local charset to a standardized one
when sending text to a channel (or some other target) and doing the inverse map on
the way back. A totally "fantastic" usage of this concept could be an "on-the-fly translator";
it could translate for example Italian to English while sending to a channel
- and English to Italian on the way back...the implementation of a such engine is left
+ and English to Italian on the way back... the implementation of a such engine is left
to the reader as exercise :) Another (maybe less interesting) usage is to
colorize the outgoing text, or transform it
in a way that it is still readable but has a different look. This engine
would not require a back transformation (so no "decrypt stage"). A "symmetric"
idea could be an engine that strips the color codes from the incoming text: this
- engine would not require a "crypting" stage.[br]
+ engine would not require an encrypting stage.[br]
- [big]The name of this stuf[/big][br]
- Initially all this stuff was named "cryptography support".
- Then the "cryptography" comed out to be not "enough" to describe
+ [big]The name of this stuff[/big][br]
+ Initially all this was named "cryptography support".
+ Then "cryptography" was no longer enough to describe
the framework, so "text transformation" is a more generic term.
Anyway, both terms were used in the documentation and the source.
Just as example, the "text transformation engine" is called
KviCryptEngine in the sources. So actually the terms "crypt"
- and "text transformations" refer to the "same thing".
+ and text transformation refer to the same thing.
You will often find the term "encrypt" standing for "outgoing text
transformation" and "decrypt" standing for "incoming text transformation".[br]
- [big]Yes, but why cryptography (on IRC) ?[/big][br]
+ [big]Yes, but why cryptography (on IRC)?[/big][br]
Because it MAY be useful. More than once people have asked me to add some
- crypting support to the dcc chats. Yes, I know that there are other
+ encryption support to the DCC chats. Yes, I know that there are other
"secure communication" tools, but actually I can't find one that is able to
implement a "secure real time conversation". And what about a MULTIPLE real
- time secure conversation ? This can be done on an IRC channel now.[br]
+ time secure conversation? This can be done on an IRC channel now.[br]
[big]The working things[/big][br]
- KVIrc can use a text transformation engine on irc channels, in the queries
- and the dcc chats. At the time I am writing, only the [module:rijndael]Rijndael[/module] crypt engine
+ KVIrc can use a text transformation engine on IRC channels, in the queries
+ and the DCC chats. At the time I am writing, only the [module:rijndael]Rijndael[/module] crypt engine
is available: this is a private key encryption algorithm that assures
a "pretty good" security level. More engines will be surely available
at the time of the 3.0.0 release of KVIrc. The engines
can be activated by the dedicated dialog that can be accessed from the "button bar"
of the window. Once an engine has been enabled all the text that you type
in the input line (that is not a command obviously) is encrypted
- and sent to the remote endpoint. If you want to sent a non crypted message
- while an engine is working you can use the CTRL+P escape: by placing
- that character as the FIRST CHARACTER of the line you will avoid crypting.
+ and sent to the remote endpoint. If you want to send a non-encrypted message
+ while an engine is working, you can use the CTRL+P escape: by placing
+ that character as the FIRST CHARACTER of the line you will avoid encrypting.
Every engine has different capabilities: some can both encrypt
and decrypt, other perform only half of the operations. Some engines
need a key (the crypt engines obviously), or two keys (you can specify
@@ -109,13 +109,13 @@
Obviously (with the current implementations) all the conversation endpoints
must agree on the engine (or better algorithm) used and on the key(s).
The key is user specified, so you have to find a secure way to negotiate
- it with your communication engpoints. If you can meet the persons in the "real life",
- this is the best way to exchange the keys, otherwise you can use mail & pgp.
- Yes, this is a "miss" of the crypt protocol: it is missing a public key handshake.[br]
+ it with your communication endpoints. If you can meet these people in real life,
+ this is the best way to exchange the keys, otherwise you can use mail & PGP.
+ Yes, this is a shortcoming of the crypt protocol: it is missing a public key handshake.[br]
[big]The first test[/big][br]
- A cool way to test a crypting engine is to use a "self query": connect to
- any irc server, and execute [cmd]query[/cmd] <yournickname>; a query window
+ A cool way to test an encryption engine is to use a "self query": connect to
+ any IRC server, and execute [cmd]query[/cmd] <yournickname>; a query window
with you both as source and target will popup; activate a crypt engine
and enable both encryption and decryption; specify the same key for
bot directions and then type some text in the input line: you will see
@@ -128,25 +128,25 @@
[big]The protocol[/big][br]
Well, there is no protocol actually, only the existing implementations, that
can be accessed by anyone that want to reproduce them. There are only some
- points relating to the crypting engines that need to be cleared:[br]
- The crypted text must be suitable to be sent through an IRC connection;
- this means that some characters can not appear in the crypted text (e.g. CR,LF,NULL....).
- KVIrc solves it in a simple way: the crypted binary data is encoded,
- either as hexadecimal numeric string or in base64.[br]
- An escape character has been defined to identify messages that are "crypted" from the
- ones that are not: this character has ascii code 30 (decimal).[br]
+ points relating to the encryption engines that need to be cleared:[br]
+ The encrypted text must be suitable to be sent through an IRC connection;
+ this means that some characters can not appear in the encrypted text (e.g. CR,LF,NULL....).
+ KVIrc solves it in a simple way: the encrypted binary data is encoded,
+ either as a hexadecimal numeric string or in base64.[br]
+ An escape character has been defined to identify messages that are "encrypted" from the
+ ones that are not: this character has ASCII code 30 (decimal).[br]
The encoding is used in private messages only and has the following format:[br]
PRIVMSG <target> :<escape_char_ascii_30><encrypted message>[br]
ASCII 30 does not correspond to any widely used escape sequence and allows
- mixing encrypted and plain text messages in a conversation...Well, this is not
- so pretty but you can exchange crypted messages with one or two friends while
- talking on a normal IRC channel: nobody else than your friends will be able
- to understand the message; others will see senseless sequences of characters.
+ mixing encrypted and plain text messages in a conversation, well, this is not
+ so pretty but you can exchange encrypted messages with one or two friends while
+ talking on a normal IRC channel, nobody else other than your friends will be able
+ to understand the message, others will see senseless sequences of characters.
You will be still able to read the unencrypted messages of the other people
on the channel.[br] The escape character is not needed if the engine
- performs non-crypting tasks: a charset mapper will produce text that
- is meant to be readed by anyone on the channel, a text colorizer will
- act in a similar way too. So the escape character is used for the "crypting"
+ performs non-encrypting tasks: a charset mapper will produce text that
+ is meant to be read by anyone on the channel, a text colorizer will
+ act in a similar way too. So the escape character is used for the encryption
engines only.
[big]An idea for the future implementations[/big][br]
@@ -157,7 +157,7 @@
KviCryptEngine::KviCryptEngine()
{
#ifdef COMPILE_CRYPT_SUPPORT
- setLastError(__tr2qs("Invalid crypt engine"));
+ setLastError(__tr2qs("Invalid encryption engine"));
m_iMaxEncryptLen = -1; // unlimited
m_deallocFunc = 0;
#endif //COMPILE_CRYPT_SUPPORT
diff --git a/src/kvilib/ext/KviRegisteredUserDataBase.cpp b/src/kvilib/ext/KviRegisteredUserDataBase.cpp
index 591c56fb7..6738bab7d 100644
--- a/src/kvilib/ext/KviRegisteredUserDataBase.cpp
+++ b/src/kvilib/ext/KviRegisteredUserDataBase.cpp
@@ -43,7 +43,7 @@
user properties, notify property, avatar property
@body:
[big]Introduction[/big][br]
- The "registered user database" is basically a set of users with associated
+ The registered user database is basically a set of users with associated
[doc:irc_masks]irc-masks[/doc] and properties.[br]
It is used to recognize users on IRC and associate properties to them.[br]
This works more or less like the IRC ban list, K-Line list, or invite list.[br]
@@ -53,7 +53,7 @@
or any other string (even with spaces). The name is an "internal identifier" for the user entry:
each name maps to a single entry and each entry has a single name.[br]
Each entry has a set of registration [doc:irc_masks]irc-masks[/doc]: these masks
- are used to recognize the user on irc.[br]
+ are used to recognize the user on IRC.[br]
[br]
[big]Registration masks[/big][br]
The masks have the common IRC mask format: [b]<nick>!<user>@<host>[/b][br]
@@ -71,7 +71,7 @@
For this reason putting wildcards in nicknames could become a problem
if not used carefully (but may also be used to achieve interesting tricks).[br]
If you don't use wildcards in nicknames you are sure that
- in a single irc connection, a mask will always refer to a single user.[br]
+ in a single IRC connection, a mask will always refer to a single user.[br]
You will commonly use the following format:[br]
<nick>!*<username>@*.<host>.<top>[br]
or[br]
@@ -79,7 +79,7 @@
In this way you can be 95% sure that the mask will really match the correct user.[br]
[br]
[big]Example of registration and lookups[/big]
- Assume that you want to registere a friend of yours: Derek Riggs.[br]
+ Assume that you want to register a friend of yours: Derek Riggs.[br]
Derek often uses "Eddie" as his nickname
"stranger" as username and has a dial-up connection that makes his IP address appear as
<variable-number>.somewhere.in.time.org.[br]
@@ -94,16 +94,16 @@
On the other hand, if you dislike the users with the nickname Eddie that come from .org
and you're implementing an auto-kick system, the correct mask to register is "Eddie!*@*.org".[br]
[br]
- KVirc ties to be smart, and always find the most correct match for an user:
+ KVIrc tries to be smart, and always find the most correct match for an user:
If you have two masks registered: Pragma!*xor@*.myisp.it and *!*@*.myisp.it,
- kvirc will match Pragma!~xor@233-dyn.myisp.it with the first one even if the second
- one matches too; the firs one is a best match.[br]
+ KVIrc will match Pragma!~xor@233-dyn.myisp.it with the first one even if the second
+ one matches too; the first one is a best match.[br]
[br]
[big]Properties[/big][br]
A registered user has an (eventually empty) set of properties
defined by name/value pairs. (In versions prior to 3.0.0 flags were used instead,
but revealed to be insufficient).[br]
- KVirc recognizes some of these proprietes and associates semantic actions to it; other properties
+ KVIrc recognizes some of these properties and associates semantic actions to it; other properties
are left for scripting extension. Property names are case insensitive.[br]
One of the recognized properties is the "[doc:notify_list]notify[/doc]" property.
When an user is found to have this property set to a special value
@@ -238,7 +238,7 @@ KviRegisteredUser * KviRegisteredUserDataBase::addMask(KviRegisteredUser * u,Kvi
l->setAutoDelete(true);
if(!u->addMask(mask))
{
- qDebug(" Ops...got an incoherent regusers action...recovered ?");
+ qDebug(" Oops! Received an incoherent regusers action, recovered?");
delete l;
l = 0;
} else {
@@ -251,7 +251,7 @@ KviRegisteredUser * KviRegisteredUserDataBase::addMask(KviRegisteredUser * u,Kvi
// Ok...add it
if(!u->addMask(mask))
{
- qDebug("ops...got an incoherent regusers action...recovered ?");
+ qDebug("Oops! Received an incoherent regusers action, recovered?");
return 0; // ops...already there ?
}
append_mask_to_list(l,u,mask);
@@ -311,7 +311,7 @@ bool KviRegisteredUserDataBase::removeUser(const QString & name)
while(KviIrcMask * mask = u->maskList()->first())
{
if(!removeMaskByPointer(mask))
- qDebug("Ops... removeMaskByPointer(%s) failed ?",name.toUtf8().data());
+ qDebug("Oops! removeMaskByPointer(%s) has failed",name.toUtf8().data());
}
emit(userRemoved(name));
m_pUserDict->remove(name);
diff --git a/src/kvilib/ext/KviSharedFilesManager.cpp b/src/kvilib/ext/KviSharedFilesManager.cpp
index 14bcf7f65..2a33f02f9 100644
--- a/src/kvilib/ext/KviSharedFilesManager.cpp
+++ b/src/kvilib/ext/KviSharedFilesManager.cpp
@@ -66,14 +66,14 @@
use an additional "size" parameter in the DCC GET request.[br]
[big]Security issues[/big]
This is a nice but unsecure method of sharing files.[br]
- The user mask is a good protection but you have to use it properly!.[br]
+ The user mask is a good protection but you have to use it properly![br]
Setting the user mask to Nick!*@* can be easily exploited (just by making an user disconnect
in one of the well known ways and then by using his nickname).[br]
On the other side, the remote end must know exactly the visible name of the offer to request
- and noone but you will tell him that name.[br]
+ and no one but you will tell him that name.[br]
In sum:[br]
Don't share any really important files: this *might* be like putting it on your webpage :D[br]
- Please don't send complains if someone stoles your /etc/passwd : it is because you have permitted that.[br]
+ Please don't send complaints if someone steals your /etc/passwd : it is because you have permitted that.[br]
*/
diff --git a/src/kvilib/irc/KviAvatar.cpp b/src/kvilib/irc/KviAvatar.cpp
index 4bfe152fd..71c3e5b75 100644
--- a/src/kvilib/irc/KviAvatar.cpp
+++ b/src/kvilib/irc/KviAvatar.cpp
@@ -51,17 +51,17 @@
The user that wants to offer a digital representation of himself
will be called "source user". The ones that will receive the notification
will be called "target users".
- Every irc user can be either a source user or target user.
+ Every IRC user can be either a source user or target user.
[big]The idea[/big]
- Every irc user has a client-side property called AVATAR. Let's say that there
+ Every IRC user has a client-side property called AVATAR. Let's say that there
are two users: A and B.[br]
When user A wants to see the B's avatar he simply sends a CTCP AVATAR request
- to B (the request is sent through a PRIVMSG irc command).[br]
- User B replies with a CTCP AVATAR notification (sent through a NOTICE irc command)
- with the name or url of his avatar.[br]
+ to B (the request is sent through a PRIVMSG IRC command).[br]
+ User B replies with a CTCP AVATAR notification (sent through a NOTICE IRC command)
+ with the name or URL of his avatar.[br]
The actual syntax for the notification is:[br]
[b]AVATAR <avatar_file> [<filesize>][/b]
- The <avatar_file> may be either the name of a B's local image file or an url
+ The <avatar_file> may be either the name of a B's local image file or a URL
pointing to an image on some web server.[br]
The optional <filesize> parameter is sent only if <avatar_file> is
stored on the B's machine and there will be more info on that later.[br]
@@ -70,15 +70,15 @@
If the file can be found
and loaded then it is simply displayed in some way near the B's nickname
otherwise A must download the avatar from some place.
- If the <avatar_file> contains a leading url prefix (http://) then
- A fetches the image from the specified url and after that displays
+ If the <avatar_file> contains a leading URL prefix (http://) then
+ A fetches the image from the specified URL and after that displays
it near the B's nickname. If the <avatar_file> does not contain the
- leading url prefix then it is assumed that B offers this file for
+ leading URL prefix then it is assumed that B offers this file for
downloading via DCC from his machine. In this case A may also avoid
requesting the file if the <filesize> is too large and the transfer
would occupy too much bandwidth (for example).
The DCC download is initiated by issuing a DCC GET <avatar_file> request to B.
- B may then reply with a standard DCC SEND or a DCC RSEND (kvirc's extension).[br]
+ B may then reply with a standard DCC SEND or a DCC RSEND (KVIrc's extension).[br]
The implementation of the DCC GET protocol is defined by other documents here around :).[br]
[br]
The CTCP AVATAR messages can be sent to a single user, a set of users or a channel:
@@ -90,7 +90,7 @@
since it allows good compression rates without compromising the image quality.
Other formats may be accepted as well (Theoretically this protocol could be
extended to allow movies or 3D images).
- The "preferred" image size may grow with time, as the network transmission speed grows.
+ The preferred image size may grow with time, as the network transmission speed grows.
*/
KviAvatar::KviAvatar(
diff --git a/src/kvilib/irc/KviIrcMask.cpp b/src/kvilib/irc/KviIrcMask.cpp
index 5ef127f67..74ae9d633 100644
--- a/src/kvilib/irc/KviIrcMask.cpp
+++ b/src/kvilib/irc/KviIrcMask.cpp
@@ -1,6 +1,6 @@
//=============================================================================
//
-// File : kvi_ircuser.cpp
+// File : KviIrcMask.cpp
// Creation date : Fri Jan 8 1999 20:56:07 by Szymon Stefanek
//
// This file is part of the KVIrc irc client distribution
@@ -29,40 +29,40 @@
/*
@doc: irc_masks
@title:
- Irc masks
+ IRC masks
@type:
generic
@short:
- Decription of the standard IRC masks
+ Description of the standard IRC masks
@keyterms:
irc masks, nickname, username, hostname, wildcard
@body:
[big]Simple masks[/big][br]
- An irc mask is a string in a special format that identifies an user on irc.[br]
+ An IRC mask is a string in a special format that identifies an user on IRC.[br]
The standard basic format is:[br]
[b]<nick>!<username>@<host>[/b][br]
The <nick> part contains the nickname with that the user is widely known across the network.[br]
- The nickname format is generally restricted by the irc network rules: usually it has a maximum
+ The nickname format is generally restricted by the IRC network rules: usually it has a maximum
length (9 on actual IrcNet servers for example), and can contain only a defined set of characters.
Just as example, the character '!' obviously can't be included in a nickname.[br]
The <username> part is the machine username of the remote user: this is usually
- retrieved by the irc server at connect time by contacting the ident service on the user's machine.
+ retrieved by the IRC server at connect time by contacting the Ident service on the user's machine.
Some IRC servers allow specifying this username inside the login messages and do not connect
- to the ident service at all.[br]
- The <username> often has a special prefix character added by the irc server:[br]
+ to the Ident service at all.[br]
+ The <username> often has a special prefix character added by the IRC server:[br]
this is rather server specific protocol, but the prefixes are somewhat standardized and
the common meanings of them are:[br]
- noprefix: I line with ident[br]
- ^: I line with OTHER type ident[br]
- ~: I line, no ident[br]
- +: i line with ident[br]
- =: i line with OTHER type ident[br]
- -: i line, no ident[br]
+ noprefix: I line with Ident[br]
+ ^: I line with OTHER type Ident[br]
+ ~: I line, no Ident[br]
+ +: i line with Ident[br]
+ =: i line with OTHER type Ident[br]
+ -: i line, no Ident[br]
So finally you can find <username> strings like "~pragma" or "^pragma", where "pragma"
is the system username of the irc-user and ~ and ^ are prefixes.[br]
The <host> part is the hostname of the remote user.[br]
In most cases it is the human-readable format of the host name, but sometimes
- it happens to be an IP-address (when the host has no reverse dns entry).[br]
+ it happens to be an IP-address (when the host has no reverse DNS entry).[br]
The IP address can be either in IPV4 format or in IPV6 format.[br]
Some (weird from my point of view) servers hide certain parts of the IP address to
prevent attacks to the user's machine.[br]
diff --git a/src/kvilib/locale/KviLocale.cpp b/src/kvilib/locale/KviLocale.cpp
index 5f52f43e3..8b828a018 100644
--- a/src/kvilib/locale/KviLocale.cpp
+++ b/src/kvilib/locale/KviLocale.cpp
@@ -267,10 +267,10 @@ public:
g_pUtf8TextCodec = QTextCodec::codecForName("UTF-8");
if(!g_pUtf8TextCodec)
{
- qDebug("Can't find the global utf8 text codec!");
+ qDebug("Can't find the global UTF-8 text codec!");
g_pUtf8TextCodec = QTextCodec::codecForLocale(); // try anything else...
if(!g_pUtf8TextCodec)
- qDebug("Aargh.. got no UTF-8 text codec: we're in trouble.");
+ qDebug("Argh! Have no UTF-8 text codec: we're in trouble.");
}
}
diff --git a/src/kvilib/locale/KviMessageCatalogue.cpp b/src/kvilib/locale/KviMessageCatalogue.cpp
index a1d3862bf..5e089dcd3 100644
--- a/src/kvilib/locale/KviMessageCatalogue.cpp
+++ b/src/kvilib/locale/KviMessageCatalogue.cpp
@@ -203,7 +203,7 @@ bool KviMessageCatalogue::load(const QString & szName)
if(iStringsNum >= 9972)
{
- qDebug("Number of strings too big...sure that it is a KVIrc catalog file ?");
+ qDebug("Number of strings too big... sure that it is a KVIrc catalog file?");
iStringsNum = 9972;
}
@@ -259,9 +259,9 @@ bool KviMessageCatalogue::load(const QString & szName)
for(int i = 0; i < iStringsNum; i++)
{
// FIXME: "Check for NULL inside strings here ?"
- //qDebug("original seems to be at %u and %u byttes long",KVI_SWAP_IF_NEEDED(bMustSwap,pOrigDescriptor[i].offset),
+ //qDebug("original seems to be at %u and %u bytes long",KVI_SWAP_IF_NEEDED(bMustSwap,pOrigDescriptor[i].offset),
// KVI_SWAP_IF_NEEDED(bMustSwap,pOrigDescriptor[i].length));
- //qDebug("translated seems to be at %u and %u byttes long",KVI_SWAP_IF_NEEDED(bMustSwap,pTransDescriptor[i].offset),
+ //qDebug("translated seems to be at %u and %u bytes long",KVI_SWAP_IF_NEEDED(bMustSwap,pTransDescriptor[i].offset),
// KVI_SWAP_IF_NEEDED(bMustSwap,pTransDescriptor[i].length));
KviTranslationEntry * e = new KviTranslationEntry(
@@ -311,7 +311,7 @@ bool KviMessageCatalogue::load(const QString & szName)
if(!m_pTextCodec)
{
qDebug("The message catalogue does not have a \"charset\" header");
- qDebug("Assuming utf8"); // FIXME: or codecForLocale() ?
+ qDebug("Assuming UTF-8"); // FIXME: or codecForLocale() ?
m_pTextCodec = QTextCodec::codecForName("UTF-8");
}
@@ -336,7 +336,7 @@ const QString & KviMessageCatalogue::translateToQString(const char * pcText)
pAux->m_pTranslation = new QString(m_pTextCodec->toUnicode(pAux->m_szEncodedTranslation.ptr()));
return *(pAux->m_pTranslation);
}
- // no translation is available: let's avoid continous string decoding
+ // no translation is available: let's avoid continuous string decoding
pAux = new KviTranslationEntry(pcText);
m_pMessages->insert(pAux->m_szKey.ptr(),pAux);
pAux->m_pTranslation = new QString(m_pTextCodec->toUnicode(pAux->m_szEncodedTranslation.ptr()));
diff --git a/src/kvilib/net/KviDnsResolver.cpp b/src/kvilib/net/KviDnsResolver.cpp
index a6b53b6f2..46f0bc681 100644
--- a/src/kvilib/net/KviDnsResolver.cpp
+++ b/src/kvilib/net/KviDnsResolver.cpp
@@ -370,7 +370,7 @@ KviDnsResolver::~KviDnsResolver()
if(m_pSlaveThread)
{
if(!m_pSlaveThread->wait(30000))
- qDebug("Failed to wait for the slave dns thread: we're probably going to crash!");
+ qDebug("Failed to wait for the slave DNS thread: we're probably going to crash!");
delete m_pSlaveThread; // will eventually terminate it (but it will also block us!!!)
}
diff --git a/src/kvilib/net/KviHttpRequest.cpp b/src/kvilib/net/KviHttpRequest.cpp
index 0d3b1e30e..19a9f89fa 100644
--- a/src/kvilib/net/KviHttpRequest.cpp
+++ b/src/kvilib/net/KviHttpRequest.cpp
@@ -190,7 +190,7 @@ bool KviHttpRequest::start()
if(m_connectionUrl.host().isEmpty())
{
resetInternalStatus();
- m_szLastError = __tr2qs("Invalid URL: Missing hostname");
+ m_szLastError = __tr2qs("Invalid URL: missing hostname");
return false;
}
@@ -235,7 +235,7 @@ void KviHttpRequest::slotSocketDisconnected()
emit binaryData(*m_p->pBuffer);
break;
case Blocks:
- // an unprocessed block ?.. should never happend.. but well :D
+ // an unprocessed block ?.. should never happened.. but well :D
if(m_p->pBuffer->size() > 0)
emit binaryData(*m_p->pBuffer);
break;
diff --git a/src/kvilib/system/KviThread.cpp b/src/kvilib/system/KviThread.cpp
index 3d072f616..255349e3d 100644
--- a/src/kvilib/system/KviThread.cpp
+++ b/src/kvilib/system/KviThread.cpp
@@ -169,7 +169,7 @@ void KviThreadManager::globalDestroy()
KviThreadManager::KviThreadManager()
: QObject()
{
- if(g_pThreadManager)qDebug("Hey...what are ya doing ?");
+ if(g_pThreadManager)qDebug("Hey... what are ya doing?");
m_pMutex = new KviMutex();
m_pThreadList = new KviPointerList<KviThread>;
@@ -186,17 +186,17 @@ KviThreadManager::KviThreadManager()
if(pipe(m_fd) != 0)
{
- qDebug("Ops...thread manager pipe creation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
+ qDebug("Oops! Thread manager pipe creation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
}
if(fcntl(m_fd[KVI_THREAD_PIPE_SIDE_SLAVE],F_SETFL,O_NONBLOCK) == -1)
{
- qDebug("Ops...thread manager slave pipe initialisation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
+ qDebug("Oops! Thread manager slave pipe initialisation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
}
if(fcntl(m_fd[KVI_THREAD_PIPE_SIDE_MASTER],F_SETFL,O_NONBLOCK) == -1)
{
- qDebug("Ops...thread manager master pipe initialisation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
+ qDebug("Oops! Thread manager master pipe initialisation failed (%s)",KviError::getDescription(KviError::translateSystemError(errno)).toUtf8().data());
}
m_pSn = new QSocketNotifier(m_fd[KVI_THREAD_PIPE_SIDE_MASTER],QSocketNotifier::Read);
@@ -346,7 +346,7 @@ void KviThreadManager::postSlaveEvent(QObject *o,QEvent *e)
{
// ops.. failed to write down the event..
// this is quite irritating now...
- qDebug("Ops.. failed to write down the trigger");
+ qDebug("Oops! Failed to write down the trigger");
// FIXME: maybe a single shot timer ?
} else {
m_iTriggerCount++;
@@ -418,7 +418,7 @@ void KviThreadManager::threadLeftWaitState()
m_iWaitingThreads--;
if(m_iWaitingThreads < 0)
{
- qDebug("Ops.. got a negative number of waiting threads ?");
+ qDebug("Oops! Do I have a negative number of waiting threads?");
m_iWaitingThreads = 0;
}
m_pMutex->unlock();