Browse Source

IRCParser now sends a password if it's non-empty

git-svn-id: http://svn.dmdirc.com/trunk@52 00569f92-eb28-0410-84fd-f71c24880f
tags/0.1
Chris Smith 17 years ago
parent
commit
8160496bd8
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/dmdirc/parser/IRCParser.java

+ 3
- 0
src/dmdirc/parser/IRCParser.java View File

@@ -245,6 +245,9 @@ public class IRCParser implements Runnable {
245 245
 			try {
246 246
 				line = in.readLine(); // Blocking :/
247 247
 				if (IsFirst) {
248
+					if (!server.sPassword.equals("")) {
249
+						SendString("PASS "+server.sPassword);
250
+                                        }
248 251
 					SetNickname(me.sNickname);
249 252
 					SendString("USER "+me.sUsername.toLowerCase()+" * * :"+me.sRealname);
250 253
 					IsFirst = false;

Loading…
Cancel
Save