egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCL script Help
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 1:11 pm    Post subject: Reply with quote

thanks worked great expect the half op bit hehe also any idea on how 2 get my bot to resolve my sites host name, some times it wont work Sad

thanks guys
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 2:01 pm    Post subject: Reply with quote

Linux wrote:
nml375 wrote:
@Linux:
With that code, you'd have to be both opped and halfopped + have ol flags.


If you read my post again i will be very thankful, one thing i would like to tell you;

Usage:
'||' = OR
'&&' = AND


If users are added in the Bot as Op/Halfop then it is NOT nesassary to be OP(@) or Halfop(%) on channel too because Bot recon them with their flags and If users are not added then they SHOULD be OP(@) or Halfop(%) on channel.

Thats the reason i apply all the conditions with the flags "lo" or "Channel Op" or "Halfop".

Regards.


And yet again I refer to De Morgan's theorem...
Proc will abort if any of the above tests fail, thus you must be opped, halfopped, and be added as a user with either o or l flags...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 3:08 pm    Post subject: Reply with quote

so what ur saying is if they aint opp'd in the channel they have to be on the bot.....

but i just want it to work for just opps in channel, dragins script qorked before til i reinstalled eggdrop Sad

and its the same config file so cant be tht
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 3:20 pm    Post subject: Reply with quote

Ace-@:
In order to add users, either use .adduser or .+user
See .help for both these commands for info on how to use them.
You probably also wish to check out .chattr and .whois
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 3:25 pm    Post subject: Reply with quote

what i dont understand is why is worked before and now it wont its getting a real pain.... here is the code

Code:

package require http

bind pub - !user stats
proc stats {n u h c a} {

if {![matchattr $h o|o $c] || ![isop $n $c]} { return }

set nick [lindex [split $a] 0]

if {$nick!=""} {

set data [::http::geturl www.xxxxxxxxxxx?search=$nick]
foreach line [split [::http::data $data] \n] {

putquick "PRIVMSG #acetorrents $line"
}
::http::cleanup $data
}
}
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 3:30 pm    Post subject: Reply with quote

As I recall, you got it working last time once you removed "|| ![isop $n $c]", as suggested by DragnLord?
Also, have you verified your bot sees your ppl as opped/+o users (using .channel <yourchannel>?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 3:35 pm    Post subject: Reply with quote

yes it shows ppl as ops
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 3:41 pm    Post subject: Reply with quote

Does it also show them as registered users with op-privileges?
(since the code you last posted requires users to be both opped and added as +o users)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 3:44 pm    Post subject: Reply with quote

yes it does thts why i cant understand this
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Oct 06, 2006 3:50 pm    Post subject: Reply with quote

post the result of .whois username, so we can see a representative example of what the bot's showing for that particular handle/username
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 3:52 pm    Post subject: Reply with quote

err... that is odd indeed
Think you could split the conditionals into separate if-statements and add some debug-printouts?
ie:
Code:
if {![matchattr $h o|o $c]} {
 puthelp "PRIVMSG $c :No privileges for $n ($h)"
 return
}
if {![isop $n $c]} {
 puthelp "PRIVMSG $c :Not opped: $n ($h)"
 return
}

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 3:52 pm    Post subject: Reply with quote

#Ace-T# whois ace-t
HANDLE PASS NOTES FLAGS LAST
Ace-T yes 0 hjlmnoptx 14:17 (partyline)
#acetorrents - 12:27
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 4:05 pm    Post subject: Reply with quote

sorry to double post

i get Not opped: Ace-T (Ace-T)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 06, 2006 4:08 pm    Post subject: Reply with quote

From the output of .channel <yourchannel>, is there a @ in front of your nick?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri Oct 06, 2006 4:09 pm    Post subject: Reply with quote

i dont but some ov my other staff do but it aint working for them either...

so how can i delete ppl from bot and add them with correct privs and i think tht should work *shrugs*
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber