mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
don't let pay/give/take 0 money
This commit is contained in:
parent
2e83c38642
commit
1e2342368c
@ -41,7 +41,7 @@ namespace MCGalaxy.Commands {
|
|||||||
|
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
data.All = canAll && args[1].CaselessEq("all");
|
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;
|
data.Amount = amount;
|
||||||
return true;
|
return true;
|
||||||
|
@ -109,7 +109,7 @@ namespace Sharkbite.Irc
|
|||||||
Debug.WriteLineIf( Rfc2812Util.IrcTrace.TraceInfo,"[" + Thread.CurrentThread.Name +"] Identd::Run()");
|
Debug.WriteLineIf( Rfc2812Util.IrcTrace.TraceInfo,"[" + Thread.CurrentThread.Name +"] Identd::Run()");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
listener = new TcpListener( IdentdPort );
|
listener = new TcpListener( IPAddress.Any, IdentdPort );
|
||||||
listener.Start();
|
listener.Start();
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user