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.

Multiple channels in script

Old posts that have not been replied to for several years.
B
BigBadPhil
Voice
Posts: 14
Joined: Tue Jan 27, 2004 4:28 pm

Multiple channels in script

Post by BigBadPhil »

My script is:-

set autoq_flag "Q"
set autoq_chan "#channel"

proc join_giveq {nick uhost hand chan} {
global autoq_flag autoq_chan
if {[validuser $hand] && [string equal -nocase $autoq_chan $chan] && [matchattr $hand $autoq_flag]} {
putserv "MODE $chan +q $nick"
}
}

bind join - * join_giveq


How do i make the script read multiple channels please? leaving a space safter it dont work.

Thanks

Phil
Regards
BigBadPhil™

http://www.bigbadphil.com
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

set chans {#chan1 #chan2 #chan3}
bind join - * foo
proc foo {n u h c} {
  set c [string tolower $c]
  set chans [string tolower $::chans]
  if {[matchattr $h Q] && [lsearch -exact $chans $c] != -1} {
    pushmode $c +q $n
  }
}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's mode +q anyway?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

demond wrote:what's mode +q anyway?
That mode means Channel Owner on the Unreal IRCd.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

^DooM^ wrote:
demond wrote:what's mode +q anyway?
That mode means Channel Owner on the Unreal IRCd.
oh my... I should've guessed it has something to do with that bloated but nevertheless popular server software
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

demond wrote:oh my... I should've guessed it has something to do with that bloated but nevertheless popular server software
Bloated in what way?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
B
BigBadPhil
Voice
Posts: 14
Joined: Tue Jan 27, 2004 4:28 pm

Post by BigBadPhil »

Thanks for that ;P
Regards
BigBadPhil™

http://www.bigbadphil.com
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

^DooM^ wrote:
demond wrote:oh my... I should've guessed it has something to do with that bloated but nevertheless popular server software
Bloated in what way?
in having tons of useless (for most people) and pathetic "features", such as that mode +q
B
BigBadPhil
Voice
Posts: 14
Joined: Tue Jan 27, 2004 4:28 pm

Post by BigBadPhil »

By the way demond, the script dont work! It did at first, then stopped working for some reason!
Regards
BigBadPhil™

http://www.bigbadphil.com
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

BigBadPhil wrote:By the way demond, the script dont work! It did at first, then stopped working for some reason!
Wrong. The script still works. You changed something or something has changed. Did you unload (fail to load) it? Does the bot recognize your +Q user(s)?
Have you ever read "The Manual"?
B
BigBadPhil
Voice
Posts: 14
Joined: Tue Jan 27, 2004 4:28 pm

Post by BigBadPhil »

It worked earlier on and i couldnt have changed anything because i have been out all night!!!

Oh, and no I have NEVER read the manual!
Regards
BigBadPhil™

http://www.bigbadphil.com
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

BigBadPhil wrote:Oh, and no I have NEVER read the manual!
now that's a honest confession :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Unless I'm really off the beaten path here, +q cannot be performed on another user. The mode, from memory, is set by ChanServ when the founder has identified.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I guess so, giving alot of people founder mode access would be irrelevant. I never knew founder access on quakenet can be achieved through a specific usermode, +q. :p
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

That's because Quakenet doesnt.
Quakenet uses Q, L to do channel stuff.

There are flags to indicate how much access you have

a = auto
v = voice
o = op
m = master
n = owner

If you have +av, You'll get autovoiced on join. same for autoop.
If you have master you can use most of the functions but when your an owner you can use all the functions for that channel. fx appoint new owners etc.

There are no special usermodes to indicate if you're an owner afaik.

ps: He said UnrealIRCD not asaka
Locked