[smuxi: 1/2] Engine-IRC: fixed /quote /raw commands for sending server passwords
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 1/2] Engine-IRC: fixed /quote /raw commands for sending server passwords
- Date: Thu, 17 Jul 2014 18:26:12 +0000 (UTC)
commit 5d858b65bab20ad53065605ff533578ccc80c3b8
Author: Mirco Bauer <meebey meebey net>
Date: Thu Jul 17 20:20:26 2014 +0200
Engine-IRC: fixed /quote /raw commands for sending server passwords
Send raw messages with critical priority to by-pass the send buffer of
SmartIrc4net which only starts to send messages when the connection and
registration have completed. But this broke sending a server password manually
before the registration was completed by issuing the "/quote PASS user:pass"
command.
src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
b/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
index 0c258fd..d950dd8 100644
--- a/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
+++ b/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
@@ -2311,7 +2311,11 @@ namespace Smuxi.Engine
public void CommandRaw(CommandModel cd)
{
- _IrcClient.WriteLine(cd.Parameter);
+ if (_IrcClient.IsRegistered) {
+ _IrcClient.WriteLine(cd.Parameter);
+ } else {
+ _IrcClient.WriteLine(cd.Parameter, Priority.Critical);
+ }
}
public void CommandMe(CommandModel cd)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]