projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d65062d
)
minor fix
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 28 Jul 2008 11:26:51 +0000
(13:26 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 28 Jul 2008 11:26:51 +0000
(13:26 +0200)
src/core/userinputhandler.cpp
patch
|
blob
|
history
diff --git
a/src/core/userinputhandler.cpp
b/src/core/userinputhandler.cpp
index
307cc7f
..
1d33de1
100644
(file)
--- a/
src/core/userinputhandler.cpp
+++ b/
src/core/userinputhandler.cpp
@@
-41,7
+41,7
@@
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))) {
int secondSlashPos = msg.indexOf('/', 1);
int firstSpacePos = msg.indexOf(' ');
if(!msg.startsWith('/') || (secondSlashPos != -1 && (secondSlashPos < firstSpacePos || firstSpacePos == -1))) {
- if(
secondSlashPos == 1
)
+ if(
msg.startsWith("//")
)
msg.remove(0, 1); // //asdf is transformed to /asdf
cmd = QString("SAY");
} else {
msg.remove(0, 1); // //asdf is transformed to /asdf
cmd = QString("SAY");
} else {