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.

How to bind nick outside a channel? (bot's nick change)

Old posts that have not been replied to for several years.
Locked
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

How to bind nick outside a channel? (bot's nick change)

Post by awyeah »

How can I trigger a bind nick change outside a channel. A nick change not in any channel but when the bot changes its nick, the variable $botnick.

Is there anyway to trace when the bot changes its nick, when its not on any channel?

I know an alternative method; to make a continuous utimer loop to check if $botnick matches my defined nick or not, but the utimer will put alot of stress on the bot as it will be running 24/7 with very small intervals of time as I need the bind nick to react at instantly.

Any suggestions? :wink:
Last edited by awyeah on Fri Sep 10, 2004 3:18 pm, edited 1 time in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Re: How to bind nick outside a channel? (bot's nick change)

Post by awyeah »

I've checked tcl-commands.doc and it contains no such information regarding this. As mentioned bind nick triggers on a channel scripts and won't work outside a channel if the bot changes its own nick.

Further more, can there be a bind raw? is it possible? bind raw to a specific ircd raw number/key/event? :roll:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: How to bind nick outside a channel? (bot's nick change)

Post by user »

Code: Select all

bind raw - NICK rawNick
proc rawNick {f k a} {
	if {$f==$::botname} {
		# new botnick is [string range $a 1 end]
	}
}
Have you ever read "The Manual"?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

kthx user :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked