mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:56:38 +02:00
some code cleanup in misc.cpp and fixed a small typo
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ class CoreExport User : public Extensible
|
||||
void Logout();
|
||||
|
||||
/** Get the account the user is logged in using
|
||||
* @reurn The account or NULL
|
||||
* @return The account or NULL
|
||||
*/
|
||||
virtual NickCore *Account();
|
||||
virtual const NickCore *Account() const;
|
||||
|
||||
+2
-2
@@ -1308,9 +1308,9 @@ Anope::string Anope::Hex(const Anope::string &data)
|
||||
{
|
||||
const char hextable[] = "0123456789abcdef";
|
||||
|
||||
int l = data.length();
|
||||
size_t l = data.length();
|
||||
Anope::string rv;
|
||||
for(int i=0; i < l; i++)
|
||||
for (size_t i = 0; i < l; ++i)
|
||||
{
|
||||
unsigned char c = data[i];
|
||||
rv += hextable[c >> 4];
|
||||
|
||||
Reference in New Issue
Block a user