projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d14b610
)
two leading slashes are now treated as a regular message with one slah being stripped
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 28 Jul 2008 11:24:33 +0000
(13:24 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 28 Jul 2008 11:24:52 +0000
(13:24 +0200)
src/core/userinputhandler.cpp
patch
|
blob
|
history
diff --git
a/src/core/userinputhandler.cpp
b/src/core/userinputhandler.cpp
index
0c2c042
..
00aabc2
100644
(file)
--- a/
src/core/userinputhandler.cpp
+++ b/
src/core/userinputhandler.cpp
@@
-41,6
+41,8
@@
void UserInputHandler::handleUserInput(const BufferInfo &bufferInfo, const QStri
int secondSlashPos = msg.indexOf('/', 1);
int firstSpacePos = msg.indexOf(' ');
if(!msg.startsWith('/') || (secondSlashPos != -1 && (secondSlashPos < firstSpacePos || firstSpacePos == -1))) {
+ if(secondSlashPos == 1)
+ msg.remove(0, 1); // //asdf is transformed to /asdf
cmd = QString("SAY");
} else {
cmd = msg.section(' ', 0, 0).remove(0, 1).toUpper();