Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

!rename bug

- - - - -

  • Please log in to reply
4 replies to this topic

#1
OFFLINE   TimOOn

TimOOn

    Newbie

  • Members
  • Pip
  • 7 posts
1
A step in the right direction

!rename command allows using backslash so it can mess up client userinfo.



#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

Do you have a ready made Lua script test case for us to use on this? If so, can you please send it to us.



#3
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

No need for test case. It can be reproduced while sitting on server.



#4
OFFLINE   TimOOn

TimOOn

    Newbie

  • Members
  • Pip
  • 7 posts
1
A step in the right direction

Yup, its just a single function.

function et_ClientCommand(clientNum, cmd)
	cmd = string.lower(cmd)
	if string.find(et.trap_Argv(1), "!rename") or cmd == "!rename" then
		if string.find(et.ConcatArgs(1), "\\") then
			et.trap_SendServerCommand( clientNum, "print \"^orename: ^7can't use names with a \'\\\'\n\"" )
			return 1
		else
			return 0
		end	
	end
end


#5
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

Fixed in the next version.

 

http://mygamingtalk....ashes-in-names/







Also tagged with one or more of these keywords: Fixed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users