don't let pay/give/take 0 money

This commit is contained in:
UnknownShadow200 2017-02-28 16:23:03 +11:00
parent 2e83c38642
commit 1e2342368c
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace MCGalaxy.Commands {
int amount = 0;
data.All = canAll && args[1].CaselessEq("all");
if (!data.All && !CommandParser.GetInt(p, args[1], "Amount", ref amount, 0)) return false;
if (!data.All && !CommandParser.GetInt(p, args[1], "Amount", ref amount, 1)) return false;
data.Amount = amount;
return true;

View File

@ -109,7 +109,7 @@ namespace Sharkbite.Irc
Debug.WriteLineIf( Rfc2812Util.IrcTrace.TraceInfo,"[" + Thread.CurrentThread.Name +"] Identd::Run()");
try
{
listener = new TcpListener( IdentdPort );
listener = new TcpListener( IPAddress.Any, IdentdPort );
listener.Start();
while (true)