search bot ...
 

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

search bot ...

Started by CyberChris, 28 July, 2006, 18:04:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CyberChris

Hi people !
I've request :
I search for a script who regged user by ops.
ex : +addreg reg <nick> <pass>
       +delreg <nick>
more : +showregs , showvips...
If it add ==> +regme , that so funny for me ...

Because i'm french and me and my friends read english difficult ...
Can you help me please ?
(Sorry for my very bad english)
Respect for all , cyberchris


Naithif

Hi

Anyway, is there a way of self-registration in the new PtokaX? I couldn't find it (not if i would use it, just curious)  ;D

(man it's because 2 o' clock here or it's just me?  :) )

Cheers :)

Naithif

#2
Well then

:edit  post removed
:edit2 sorry for posting something that already exists in other form, just tried to help

bastya_elvtars

Quote from: Naithif on 14 August, 2006, 01:56:59
Well then

:edit  post removed
:edit2 sorry for posting something that already exists in other form, just tried to help

Could you please post it again? It is a misunderstanding that's going on.
Everything could have been anything else and it would have just as much meaning.

Naithif

#4
The script already exist in some other form, so my version isn't needed that's all
Off to sleep

[HE]Newbie

#5
Here you go.., Didn't tested it but post your questions or errors

-- regme script v1.0
-- Allows users to register themself

sBot = "Register-Bot"


function ChatArrival(CurUser, Data)
	Data=string.sub(Data,1,-2)
	local s,e,cmd=string.find(Data, "%b<>%s+[%!%+%?%#%?%-](%S+)")
	if cmd then
		local tCmds = {
		["regme"] = function(CurUser, Data)
			local s,e,passw = string.find(Data, "%b<>%s+%S+%s+(%S+)")
			if (passw == nil) then
				CurUser:SendData(sBot, "*** Fatal error, You must write a password")
			elseif (string.find(pass, "[%c|\n\r]")) then
				CurUser:SendData(sBot, "*** Fatal error, You used an invalid password, please try again")
			elseif (string.find(CurUser.sName, "[%c|\n\r]")) then 
				CurUser:SendData(sBot, "*** Fatal error, You used an invalid nickname, please try again")
			else
				AddRegUser(CurUser.sName, pass, 3)
				SendToOps(sBot, "User "..CurUser.sName.." used self-registration and is now registered with us!")
				sendtouser = "\r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?You are now registered with information: \r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?=====================================================? ?\r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?Nickname	:? "..CurUser.sName.."\r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?Password	:? "..pass.."\r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?Account	:? Registered user\r\n"..
				"? ? ? ? ? ? ? ? ? ? ? ?====================================================="
				CurUser:SendData(sBot, sendtouser)
			end
		end,
	}
		if tCmds[cmd] then
			return tCmds[cmd](CurUser,Data),1
		end
	end
end

-- [NL][Newbie][NL] 2006,


Greetz Newbie!
There will be 1 day, that i learn

nlgezel.hopto.org:411

SMF spam blocked by CleanTalk