| View previous topic :: View next topic |
| Author |
Message |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Tue Mar 13, 2007 12:47 pm Post subject: trying to make it channel add two channels |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Mar 13, 2007 2:36 pm Post subject: |
|
|
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? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Fri Mar 16, 2007 11:14 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Mar 16, 2007 1:27 pm Post subject: |
|
|
| 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...
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|