help with userclientinfo.lua
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

help with userclientinfo.lua

Started by Caduceus, 15 March, 2005, 23:16:29

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Caduceus

Hi,

I'm using the new Robo10.1a and Ptokax 0.3.3.0 b16.06 and was trying to modify the userclientinfo.lua to replace the MOTD completely.

However, the user/client-info won't show for simple users, but does show for anyone else (Reg and up).

How do i change the script (or anything else) so that unregged users too (that means everybody) see the info when they login?

Thanx in advance.

(below is original script userclientinfo.lua)
QuoteConnectInfo = function(user)
   local sTag = user.bHasTag
   if sTag then
      local hName = frmHub:GetHubName()
      local sPace = string.char(32)..string.char(32)..string.char(32)..string.char(32)
      local info = "\r\n\r\n\t?????????? Welcome to "..hName.." ??????????\r\n"
      info = info.."\t"..sPace.."Your name is: "..(user.sName  or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your profile is: "..tProfileName(user).."\r\n"
      info = info.."\t"..sPace.."Your current ip: "..(user.sIP or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your using client: "..(user.sClient or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your version is: "..(user.sClientVersion or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your current mode is: "..(tMode[user.sMode] or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your total hubs are: "..(user.iHubs or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your open slots are: "..(user.iSlots or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your sharesize is: "..ConvShare(user.iShareSize).."\r\n"
      info = info.."\t"..sPace.."Your description is: "..(user.sDescription or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your connection is: "..(user.sConnection or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your email is: "..(user.sEmail or "n/a").."\r\n"
      info = info.."\t?????????? Welcome to "..hName.." ??????????\r\n"
      user:SendData(tSettings.sBot, info)
   end
   
end

Caduceus

I just read that Optimus disabled the userclientinfo-msg for simple users to save bandwidth.

Does anyone knows an alternative log-on script that can replace the MOTD for ALL users?

tnx

SMF spam blocked by CleanTalk