MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000590Soldat Dedicated ServerScripting Corepublic2014-10-09 19:022014-10-10 13:06
ReporterMighty 
Assigned ToExHunter 
PriorityhighSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86OSWindowsOS VersionXP SP3
Product Version2.7.8b1 
Target VersionFixed in Version 
Summary0000590: OnTCPMessage's Result doesn't change server's behaviour.
DescriptionOnTCPMessage's Result doesn't stop the commands from execution regardless of it's value.
Steps To Reproducefunction TCPMessage(Ip: string; Port: Word; Text: string): boolean;
begin
  WriteLn('TCPMessage('+Ip+','+inttostr(Port)+','+Text+')');
  Result := TRUE;
  //Result := FALSE;
end;

begin
  Game.OnTCPMessage := @TCPMessage;
end.
TagsNo tags attached.
John
Attached Files

- Relationships

-  Notes
(0002337)
ExHunter (developer)
2014-10-09 19:28

Oh this was never supposed to be a function.

My bad. I will look tomorrow what I could do.
(0002338)
Mighty (developer)
2014-10-10 07:44

Please make it a function though, so we can, for example, replace default /say command with something neat.
(0002340)
ExHunter (developer)
2014-10-10 13:06

Made it a procedure.

Added TGame.OnTCPCommand of type TOnTCPCommandEvent
TOnTCPCommandEvent = function(Ip: string; Port: Word; Command: string): Boolean;

- Issue History
Date Modified Username Field Change
2014-10-09 19:02 Mighty New Issue
2014-10-09 19:28 ExHunter Note Added: 0002337
2014-10-10 07:44 Mighty Note Added: 0002338
2014-10-10 13:06 ExHunter Note Added: 0002339
2014-10-10 13:06 ExHunter Note Deleted: 0002339
2014-10-10 13:06 ExHunter Note Added: 0002340
2014-10-10 13:06 ExHunter Status new => resolved
2014-10-10 13:06 ExHunter Resolution open => fixed
2014-10-10 13:06 ExHunter Assigned To => ExHunter


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker