| View previous topic :: View next topic |
| Author |
Message |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 1:11 pm Post subject: |
|
|
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
thanks guys |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 2:01 pm Post subject: |
|
|
| 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 |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 3:08 pm Post subject: |
|
|
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
and its the same config file so cant be tht |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 3:20 pm Post subject: |
|
|
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 |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 3:25 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 3:30 pm Post subject: |
|
|
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 |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 3:35 pm Post subject: |
|
|
| yes it shows ppl as ops |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 3:41 pm Post subject: |
|
|
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 |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 3:44 pm Post subject: |
|
|
| yes it does thts why i cant understand this |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Oct 06, 2006 3:50 pm Post subject: |
|
|
| 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 3:52 pm Post subject: |
|
|
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 |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 3:52 pm Post subject: |
|
|
#Ace-T# whois ace-t
HANDLE PASS NOTES FLAGS LAST
Ace-T yes 0 hjlmnoptx 14:17 (partyline)
#acetorrents - 12:27 |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 4:05 pm Post subject: |
|
|
sorry to double post
i get Not opped: Ace-T (Ace-T) |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 06, 2006 4:08 pm Post subject: |
|
|
From the output of .channel <yourchannel>, is there a @ in front of your nick? _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri Oct 06, 2006 4:09 pm Post subject: |
|
|
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 |
|
 |
|