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 

trying to make it channel add two channels

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Tue Mar 13, 2007 12:47 pm    Post subject: trying to make it channel add two channels Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Mar 13, 2007 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vigilant
Halfop


Joined: 05 Jan 2006
Posts: 48

PostPosted: Fri Mar 16, 2007 11:14 am    Post subject: Reply with quote

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 Confused
_________________
Anser Quraishi
Website: http://www.anserq.com
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Mar 16, 2007 1:27 pm    Post subject: Reply with quote

vigilante wrote:
But it doesn't show the bot joining the other channel because of channels modes in the channel. Thanks anyway Opposing Confused

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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