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 

help please tcl of no idles
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sat Apr 18, 2015 4:01 pm    Post subject: hi Reply with quote

hi caesar
it is possible to add to the tcl a part where the bot should ignore the ircop
my ircops change of vhost and for error they of assistance
I would like to know if it is possible to add a section where the tcl should ignore or should exclude to the ircops in general
Smile
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sun Apr 19, 2015 6:00 am    Post subject: Reply with quote

@abah: haven't checked the latest code but should work. You get any errors?

@Arnold_X-P: Is there any other way to know who's ircop apart whois?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sun Apr 19, 2015 11:50 am    Post subject: Re: help please tcl of no idles Reply with quote

I was referring that the bot ignores or excludes an ircop when between to the channel using /whois nick.

Saul is an IRC Operator
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Apr 20, 2015 1:21 am    Post subject: Reply with quote

After a bit of digging looks like IRC raw numeric unfortunately aren't standardized so while on Undernet I get this on raw 330 on your IRC Network can be something else. So, if you got a mIRC client do this command in status window:
Code:

/debug @bla

and then whois a ircop and copy/paste the line that says "user is an IRC Operator" from this @bla window. Then it's safe to close it.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Mon Apr 20, 2015 11:46 pm    Post subject: Reply with quote

I was not referring to that.
is he that the tcl ignores to ircops that it detects in the channel
using one /whois nick
something similar to this:
Code:

bind raw - "302" IRCopScan302
proc IRCopScan302 {from key text} {
   global operscan scanoperchan
   set text "[lindex $text 1]"
   set nick [lindex [split "$text" :=*] 1]
if {($operscan(start)) && ([info exists scanoperchan($nick)]) && ([string match *\\* [lindex [split "$text" =] 0]])} {
      set chan $scanoperchan($nick)

_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue Apr 21, 2015 1:01 am    Post subject: Reply with quote

Then the raw I was looking for is actually 313 (like it says on RAW Events Reference), not 302.
Quote:

<- :underworld.se.eu.dal.net 313 cez SaD :is an IRC Operator - Services Administrator
<- :MustyHay.eu.ix.Undernet.org 313 cez Buster :is an IRC Operator

For future reference if others look for something similar then instead of doing a whois on a each member of a channel you can use "/who 0 o" and will get a list of ircops that are at least on one channel as you. Smile The result will be in a raw 352.

But there's a catch.. the output will have the last channel you joined where one ircop is on, so it doesn't mean he's only on that channel. But, as long as we got his name is more than enough to get all common channels or whatnot.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sat May 09, 2015 12:10 am    Post subject: Reply with quote

caesar
it is possible that the tcl ignores all the ircops that are in the channel
example:

that the noidle tcl is employed at the channel #help and there all the ircops are with different vhost and the same tcl ignores them..

it is possible that the tcl ignores all the ircops that are in certain channel??

thanks
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat May 09, 2015 1:53 am    Post subject: Reply with quote

Hi,

sure. Been a bit busy with work lately and didn't had time to finish what I started. Will get back to you later on today hopefully.
_________________
Once the game is over, the king and the pawn go back in the same box.
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
Page 2 of 2

 
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