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.

help please tcl of no idles

Help for those learning Tcl or writing their own scripts.
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

hi

Post by Arnold_X-P »

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
:)
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

@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.
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

Re: help please tcl of no idles

Post by Arnold_X-P »

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

Saul is an IRC Operator
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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: Select all

/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.
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

Post by Arnold_X-P »

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: Select all

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)
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Then the raw I was looking for is actually 313 (like it says on RAW Events Reference), not 302.
<- :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. :) 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.
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

Post by Arnold_X-P »

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
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Post Reply