aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/RASocket.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-15 11:56:59 -0600
committermegamage <none@none>2008-11-15 11:56:59 -0600
commit8df6868fac60722f4b5c5278492a1e6bad19b10e (patch)
tree4fc70f2c643b38be546de63fefdfde3feeae27f3 /src/trinitycore/RASocket.cpp
parent9ff33852b73ce7934c3f88eef21c81c4c2b1f408 (diff)
[svn] DynamicObject should only be visible for caster if it is not in distance. However, I do not think this will fix the bug that dynamic object update freezes the server.
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/RASocket.cpp')
-rw-r--r--src/trinitycore/RASocket.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index 00f91f1a69a..f953dc3f592 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -10,12 +10,12 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/** \file
@@ -197,8 +197,8 @@ void RASocket::OnRead()
loginDatabase.escape_string(pw);
QueryResult *check = loginDatabase.PQuery(
- "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))",
- login.c_str(), pw.c_str());
+ "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))",
+ login.c_str(), pw.c_str());
if(check)
{
@@ -244,13 +244,13 @@ void RASocket::zprint( const char * szText )
#ifdef RA_CRYPT
- char *megabuffer=strdup(szText);
+ char *megabuffer=strdup(szText);
unsigned int sz=strlen(megabuffer);
Encrypt(megabuffer,sz);
- send(r,megabuffer,sz,0);
+ send(r,megabuffer,sz,0);
delete [] megabuffer;
-
- #else
+
+ #else
unsigned int sz=strlen(szText);
send(r,szText,sz,0);