OSDN Git Service

slightly changes
authorole1986 <ole.k@web.de>
Mon, 11 Aug 2014 09:59:45 +0000 (11:59 +0200)
committerole1986 <ole.k@web.de>
Mon, 11 Aug 2014 09:59:45 +0000 (11:59 +0200)
plugins/Radegast.Plugin.EVOVend/EVOvendPlugin.cs

index 67f9aba..07f9fbd 100644 (file)
@@ -373,16 +373,16 @@ namespace Radegast.Plugin.EVOVend
             
             Inventory.RootFolder.OwnerID = Client.Self.AgentID;
 
-            instance.MainForm.TabConsole.DisplayNotificationInChat(pluginName + ": Queue List");
-
             var strContent = this.RequestVendor("GETOUTSTANDING");
             List<DeliveryQueue> queue = this.parseResponse(strContent);
+            instance.MainForm.TabConsole.DisplayNotificationInChat(pluginName + ": " + queue.Count + " Items in Queue List");
 
-            // check if i have something to do
-            if (queue.Count <= 0) return;
-
-            foreach (DeliveryQueue p in queue)
-                this.SendObject(p);
+            // check if something neddc to be done
+            if (queue.Count > 0)
+            {
+                foreach (DeliveryQueue p in queue)
+                    this.SendObject(p);
+            }
 
             isSending = false;
         }