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.

trying to make it channel add two channels

Help for those learning Tcl or writing their own scripts.
Post Reply
v
vigilant
Halfop
Posts: 48
Joined: Thu Jan 05, 2006 12:06 am

trying to make it channel add two channels

Post by vigilant »

proc start:scrim { n u h c a } {
channel add #findscrim
channel add #calscrim
}

It's not joining both channels! and i tried setting global variables like
global chan1
global chan2
and tried typing..
set chan1 "#findscrim"
in the proc
and that way, it didnt work, with both variables either, why?
Anser Quraishi
Website: http://www.anserq.com
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Are you calling this proc or you just loaded it? It looks like a proc for a pub(m) bind, do you have a pub bind that calls this proc?
v
vigilant
Halfop
Posts: 48
Joined: Thu Jan 05, 2006 12:06 am

Post by vigilant »

Lo, i think it worked sorry lol.
But it doesn't show the bot joining the other channel because of channels modes in the channel. Thanks anyway Opposing :?
Anser Quraishi
Website: http://www.anserq.com
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

vigilante wrote:But it doesn't show the bot joining the other channel because of channels modes in the channel. Thanks anyway Opposing :?
I didn't really understand what you said, but I think you mean that the bot is not being able to join the channel due to a restriction mode. Depends on the restriction type, what you can do is:
  • If the channel is restricted to registered users, register your bot's nick.
  • If the bot can only join on invite, then you can .chanset #channel need-invite putserv "ChanServ :invite #channel $botnick" (command might differ on every network)
  • Same thing, if the bot is banned then set need-unban, if the channel has a key then set need-key...
Post Reply