mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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;
|
||||
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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user