[smuxi] Engine: allow /config get without key because Joel Bennett expected this to work
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi] Engine: allow /config get without key because Joel Bennett expected this to work
- Date: Wed, 19 Feb 2014 20:17:54 +0000 (UTC)
commit bc863c649cb1b56dbb38786405981a8dadcbf370
Author: Mirco Bauer <meebey meebey net>
Date: Wed Feb 19 21:16:27 2014 +0100
Engine: allow /config get without key because Joel Bennett expected this to work
src/Engine/Session.cs | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/Engine/Session.cs b/src/Engine/Session.cs
index bf7376c..b30e788 100644
--- a/src/Engine/Session.cs
+++ b/src/Engine/Session.cs
@@ -704,11 +704,7 @@ namespace Smuxi.Engine
case "get":
case "list":
string key = null;
- if (action == "get") {
- if (cd.DataArray.Length < 3) {
- _NotEnoughParameters(cd);
- return;
- }
+ if (action == "get" && cd.DataArray.Length >= 3) {
key = cd.DataArray[2];
}
foreach (var entry in _UserConfig.OrderBy(kvp => kvp.Key)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]