From 5bccacbcd34320333f965dcc31c41a1870677421 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sat, 8 May 2010 18:46:17 +0000 Subject: [PATCH] Remove default text in fields git-svn-id: https://radegast.googlecode.com/svn/trunk@615 f7a694da-4d33-11de-9ad6-1127a62b9fcd --- plugins/Radegast.Plugin.IRC/RelayConsole.Designer.cs | 2 -- plugins/Radegast.Plugin.IRC/RelayConsole.cs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Radegast.Plugin.IRC/RelayConsole.Designer.cs b/plugins/Radegast.Plugin.IRC/RelayConsole.Designer.cs index cdec601..a564c27 100644 --- a/plugins/Radegast.Plugin.IRC/RelayConsole.Designer.cs +++ b/plugins/Radegast.Plugin.IRC/RelayConsole.Designer.cs @@ -125,7 +125,6 @@ this.txtChan.Name = "txtChan"; this.txtChan.Size = new System.Drawing.Size(80, 20); this.txtChan.TabIndex = 4; - this.txtChan.Text = "#awg"; // // txtNick // @@ -133,7 +132,6 @@ this.txtNick.Name = "txtNick"; this.txtNick.Size = new System.Drawing.Size(61, 20); this.txtNick.TabIndex = 3; - this.txtNick.Text = "LolaBot"; // // txtPort // diff --git a/plugins/Radegast.Plugin.IRC/RelayConsole.cs b/plugins/Radegast.Plugin.IRC/RelayConsole.cs index 0f95b7f..860037a 100644 --- a/plugins/Radegast.Plugin.IRC/RelayConsole.cs +++ b/plugins/Radegast.Plugin.IRC/RelayConsole.cs @@ -255,7 +255,9 @@ namespace Radegast.Plugin.IRC Thread IRCConnection = new Thread(new ParameterizedThreadStart(IrcThread)); IRCConnection.Name = "IRC Thread"; IRCConnection.IsBackground = true; - IRCConnection.Start(new object[] { txtServer.Text, int.Parse(txtPort.Text), txtNick.Text, txtChan.Text }); + int port = 6667; + int.TryParse(txtPort.Text, out port); + IRCConnection.Start(new object[] { txtServer.Text, port, txtNick.Text, txtChan.Text }); } void irc_OnRawMessage(object sender, IrcEventArgs e) -- 2.11.0