This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

wtf is wrong with this?:(

Old posts that have not been replied to for several years.
Locked
r
raptor86

wtf is wrong with this?:(

Post by raptor86 »

im just a newby 2 tcl but i already like it
i made a lil script based on one i say in a tutor but it aint workin somehow while i think it should:S

this is the script:

Code: Select all

bind MSG - opme msg:opdadamnguy
proc msg:opdadamnguy { nick host hand arg } {
  pushmode #test +o $nick
  puthelp "PRIVMSG #test :Welcome $nick! u r now an op!"
  return 0
}
[/code]
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

could be #test is an invalid chan or something ... or your bot is not opped, because the script looks fine.

what error do you get in the pline?
It is a mistake to think you can solve any major problems just with potatoes.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

pushmode #test +o $nick
This is where the eroor is.. # in tcl is a special char.. used for when you add normal text to a script.. you have to escape it
Elen sila lúmenn' omentielvo
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

It's ok to use # as long as it's not the first char on the line (e.g. comment).

Really, it doesn't look like anything is wrong with the script. Maybe he's testing it wrong? Like the person doing the command is already opped?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Maybe it is the "#test" at issue.

The command is tryignt o OP sombody on the shell #test.

Are your sure this si what you want.
r
raptor86

Post by raptor86 »

i want 2 make a script that op's the given users on join
but i first tried this but somehow no command with opping works:(

later (if it works) i wanna add an 'if' construction so only the given users will be opped (ill change the msg bind in an onjoin bind)...
and then i wanna create some script that will save users in a DB

but first this has to work:S
i tried 2 use a var instead of just #test (so: 'set chan_1 #test' and then i use 'chan_1') but it still doesnt work:(

is there some default option in my eggdrop that makes opping impossible or so???
Locked