Prefix
 

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

Prefix

Started by bastya_elvtars, 19 May, 2004, 23:29:14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bastya_elvtars

Sorry 4 posting w/o searching but im off my time...
In my HUB when i set prefix in ptokax so that it must be [HUN] for everyone it still lets non-[HUN] ppl in... If there was a script for this... i would b happy!  :D
Everything could have been anything else and it would have just as much meaning.

nErBoS

Hi,

Hope it helps...

--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if (strsub(strlower(user.sName),1,5) ~= "[hun]") then
		user:SendPM(sBot, "This Hub only accept users with [HUN]nick.")
		user:Disconnect()
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

bastya_elvtars

Thank you, nerbos!

((()))
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

It reject VIPs... :(
VIPs do not have [HUN] prefix @ us...
Everything could have been anything else and it would have just as much meaning.

Madman

Try this...

--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if GetProfileName(user.iProfile == -1) then
	if (strsub(strlower(user.sName),1,5) ~= "[hun]") then
		user:SendPM(sBot, "This Hub only accept users with [HUN]nick.")
		user:Disconnect()
	end
end
end
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

nErBoS

Hi,

Simpler and also to check reg....

--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if (user.iProfile ~= 2 and strsub(strlower(user.sName),1,5) ~= "[hun]") then
		user:SendPM(sBot, "This Hub only accept users with [HUN]nick.")
		user:Disconnect()
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

bastya_elvtars

The 2nd one rejected everyone, the 3rd one works...
Thx peepz!
((()))

(I know this was a noob thing but i get banned from hublist if its not 100% sure if [HUN] must be there)
Everything could have been anything else and it would have just as much meaning.

oblivion

Syntax error: bad argument #1 to `strsub' (string expected, got nil)
stack traceback:
   1:  function `strsub' [C]
   2:  function `NewUserConnected' at line 423 [file `Robocop\RoboCopv8.0a.lua']







WHY

 ;(
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

nErBoS

Hi,

The error comes from RoboCop, are you using this script apart ???

Best regards, nErBoS
--## nErBoS Spot ##--

oblivion

yes on its own


--Requested by bastya_elvtars
--Made by nErBoS

sBot = "?''??.:']i[':.??''?"

function Main()
   frmHub:RegBot(sBot)
end

function NewUserConnected(user)
   if (user.iProfile ~= 2 and strsub(strlower(user.sName),1,5) ~= "?''??.:']i[':.??''?") then
      user:SendPM(sBot, "THIS IS NOW A PRIVATE HUB ..IF YOU WANT TO BE PART OF IT Hub only accept users with ?''??.:']i[':.??''?nick.")
      user:Disconnect()
   end
end
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

nErBoS

#10
Hi,

The script has been badly change try this...

--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

prefix = "?''??.:']i[':.??''?"

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if (user.iProfile ~= 2 and strsub(strlower(user.sName),1,strlen(prefix)) ~= strlower(prefix)) then
		user:SendPM(sBot, "This Hub only accept users with "..prefix.."nick.")
		user:Disconnect()
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

oblivion

nah..i get this shit


Syntax error: bad argument #1 to `strsub' (string expected, got nil)
stack traceback:
   1:  function `strsub' [C]
   2:  function `NewUserConnected' at line 423 [file `Robocop\RoboCopv8.0a.lua']



 X(
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

nErBoS

#12
Hi,

I have tested the script and is not giving any error, like i said the error comes from RoboCop...

2: function `NewUserConnected' at line 423 [file `Robocop\RoboCopv8.0a.lua']

This says all.

Best regards, nErBoS
--## nErBoS Spot ##--

oblivion

maybe one for optimus...you watching mate?
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

Herodes

#14
I don't think the error is from Robocop ...
Nothing against you but I thing Robocop has
frmHub:EnableFullData(1)
So that is why the Robocop.lua is coming up ...
Although, I'm not sure and the above is a guess .. or  a logical conclusion .. ;)

Most probably its the "special" tag  ...
I think it would serve the same purpose if it where not using all these special  chars ....  :S

oblivion

i just tried it without RC8a running, just using built in ptokax settings ..no syntax errors atall

looks like i will have to dump RC 8a..unless opti can rectify my problem ,,who knows!
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

plop

try this 1.
--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

prefix = "?''??.:']i[':.??''?"

function Main()
	frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if (user.iProfile ~= 2 and strsub(strlower(user.sName),1,strlen(prefix)) ~= strlower(prefix)) then
		user:SendPM(sBot, "This Hub only accept users with "..prefix.."nick.")
		user:Disconnect()
      return 1
	end
end
plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

oblivion

nope...same shit happens   ;(  ..dam this
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

plop

QuoteOriginally posted by oblivion
nope...same shit happens   ;(  ..dam this
ok next try.
--Requested by bastya_elvtars
--Made by nErBoS

sBot = "Nick Prefix"

prefix = "?''??.:']i[':.??''?"

function Main()
	frmHub:RegBot(sBot)
end

function DataArrival(user, data)
	if (user.iProfile ~= 2 and strsub(strlower(user.sName),1,strlen(prefix)) ~= strlower(prefix)) then
		user:SendPM(sBot, "This Hub only accept users with "..prefix.."nick.")
		user:Disconnect()
      return 1
	end
end
plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

oblivion

hmm..no errors now..but.. nobody can connect  ;(
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

bastya_elvtars

Works here...
Whats the difference? :)
Everything could have been anything else and it would have just as much meaning.

oblivion

NOPE !



Syntax error: bad argument #1 to `strsub' (string expected, got nil)
stack traceback:
   1:  function `strsub' [C]
   2:  function `NewUserConnected' at line 423 [file `Robocop\RoboCopv8.0a.lua']
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

oblivion

QuoteOriginally posted by oblivion
i just tried it without RC8a running, just using built in ptokax settings ..no syntax errors atall works excellent

looks like i will have to dump RC 8a..unless opti can rectify my problem ,,who knows!


this script conflicts with RC8a..without doubt
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

oblivion

'User Tags' in RoboCop.
ie... [REG] , [OP], [VIP]?



NONE AT ALL
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

oblivion

this message keeps repeating itself over and over
do you suggest i replace RC
.:::\'][\'  r  ?  ?  ?  ?    :: ][  ?  ?  ?  r  ?  ?  r  ?  \'][\'  ?  ?::::.    



hub address::     oblivion.servebeer.com


the hub

SMF spam blocked by CleanTalk