summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-02-27 02:32:32 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-02-27 02:32:32 +0000
commitf847ae831e6a1cfb29a7045683e308ff668b1717 (patch)
treef91deca288fef82ab51febc75920c0d2aa06bf46 /src
parent2e4a8cf3a0f26d0b915621dc51f44c4883e6adc8 (diff)
downloadmana-f847ae831e6a1cfb29a7045683e308ff668b1717.tar.gz
mana-f847ae831e6a1cfb29a7045683e308ff668b1717.tar.bz2
mana-f847ae831e6a1cfb29a7045683e308ff668b1717.tar.xz
mana-f847ae831e6a1cfb29a7045683e308ff668b1717.zip
Little typos.
Diffstat (limited to 'src')
-rw-r--r--src/gui/chat.cpp53
1 files changed, 26 insertions, 27 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index e9046cb6..278f36c3 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -76,39 +76,38 @@ void ChatBox::chat_log(std::string line, int own)
tmp.own = own;
// A try to get text sentences no too long...
- bool Finished = false;
- while ( !Finished )
- {
- std::string TempText;
- if ( line.length() > 60 )
- { std::cout << "long" << std::endl;
-
+ bool finished = false;
+ while ( !finished )
+ {
+ std::string tempText;
if ( line.length() > 60 )
- TempText = line.substr(0, 60);
- else
- TempText = line;
+ {
+
+ if ( line.length() > 60 )
+ tempText = line.substr(0, 60);
+ else
+ tempText = line;
- tmp.text = TempText;
+ tmp.text = tempText;
- //chatlog_file << tmp.nick << tmp.text << "\n";
- //chatlog_file.flush();
+ //chatlog_file << tmp.nick << tmp.text << "\n";
+ //chatlog_file.flush();
- chatlog.push_front(tmp);
+ chatlog.push_front(tmp);
- if ( line.length() > 60 )
- line = line.substr(60, line.length() - 60);
- }
-
- else // Normal message
- { std::cout << "Normal" << std::endl;
- tmp.text = line;
- //chatlog_file << tmp.nick << tmp.text << "\n";
- //chatlog_file.flush();
+ if ( line.length() > 60 )
+ line = line.substr(60, line.length() - 60);
+ }
+ else // Normal message
+ {
+ tmp.text = line;
+ //chatlog_file << tmp.nick << tmp.text << "\n";
+ //chatlog_file.flush();
- chatlog.push_front(tmp);
- Finished = true;
- }
- }
+ chatlog.push_front(tmp);
+ finished = true;
+ }
+ }
}
void ChatBox::chat_log(CHATSKILL action) {