PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: HaL on 19 February, 2004, 13:10:47

Title: need help with !hideme
Post by: HaL on 19 February, 2004, 13:10:47
hey

i tried to hideme in user list with

elseif (cmd == "!hideme") and user.iProfile == 0 then
s,e,cmd,arg = strfind( data, "%b<>%s+(%S+)%s+(.*)")
      frmHub:UnregBot(user.sName)
return 1

      elseif (cmd == "!unhideme") and user.iProfile == 0 then
s,e,cmd,arg = strfind( data, "%b<>%s+(%S+)%s+(.*)")
      frmHub:RegBot(user.sName)
return 1

but there ist one thing i can?t fix

if i hideme and unhideme and go out of the hub
next time i will go into the hub i get the
your nick was allready taken change to something else message

i cant go into the hub with this nick until i restart the hub

does someone know how to fix this?

thx
Title:
Post by: nErBoS on 19 February, 2004, 13:27:22
Hi,

You can had this to your disconnectuser function or opdisconnect if the commands are only to ops..

function UserDisconnected(user, data)
frmHub:UnregBot(user.sName)
end

Best regards, nErBoS
Title:
Post by: HaL on 19 February, 2004, 14:35:12
wow thx

thats it !

HaL