Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
90
Issues
90
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
61bfd1db
Commit
61bfd1db
authored
Apr 21, 2015
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Decode incoming JIDs local part according to xep 0106"
This reverts commit
ad0465b3
. Conflicts: louloulibs
parent
6a28bde1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
src/irc/iid.cpp
src/irc/iid.cpp
+0
-2
src/test.cpp
src/test.cpp
+0
-8
No files found.
src/irc/iid.cpp
View file @
61bfd1db
#include <utils/tolower.hpp>
#include <config/config.hpp>
#include <utils/encoding.hpp>
#include <irc/iid.hpp>
...
...
@@ -69,7 +68,6 @@ Iid::Iid():
void
Iid
::
set_local
(
const
std
::
string
&
loc
)
{
this
->
local
=
utils
::
tolower
(
loc
);
xep0106
::
decode
(
local
);
}
void
Iid
::
set_server
(
const
std
::
string
&
serv
)
...
...
src/test.cpp
View file @
61bfd1db
...
...
@@ -396,15 +396,7 @@ int main()
assert
(
iid6
.
get_server
()
==
"fixed.example.com"
);
assert
(
iid6
.
is_channel
);
assert
(
!
iid6
.
is_user
);
Config
::
set
(
"fixed_irc_server"
,
""
,
false
);
}
std
::
cout
<<
color
<<
"Testing JID (xep 0106) decoding…"
<<
reset
<<
std
::
endl
;
assert
(
Iid
{
"space
\\
20cadet!"
}.
get_local
()
==
"space cadet"
);
assert
(
Iid
{
"call
\\
20me
\\
20
\\
22ishmael
\\
22!"
}.
get_local
()
==
"call me
\"
ishmael
\"
"
);
assert
(
Iid
{
"
\\
2f.fanboy!"
}.
get_local
()
==
"/.fanboy"
);
assert
(
Iid
{
"Q
\\
40CServe.quakenet.org!"
}.
get_local
()
==
"q@cserve.quakenet.org"
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment