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.

channel info show's only once

Old posts that have not been replied to for several years.
Locked
H
HecKel
Voice
Posts: 23
Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal

channel info show's only once

Post by HecKel »

hello there

I put my channel with +greet, and I want the egg shows the channel info when the user join's this channel and then remove it from the user, but don't remove the global info from the him, how can I do that?

thanks, HecKel
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

showing chaninfo only once and then removing it? why would you want to do that? and when do you want it set in the first place?
H
HecKel
Voice
Posts: 23
Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal

Post by HecKel »

My users have global Info to display they onjoin message, but i want use the channel info to show channel information when is necessary, but show this information once, then the channel info is removed and the global info stays, it's like channel topic, but in this way this highlight the user :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

"highlight the user"? that doesn't make any sense to me

removing chaninfo dynamically implies it also needs to be set dynamically, so how would you do that? when would you set it, and to what?
H
HecKel
Voice
Posts: 23
Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal

Post by HecKel »

this is how i put the chan info, now i want to remove when the egg shows the user this info

Code: Select all

bind pub o .notice pub:notice
proc pub:notice {n u h c a} {
        foreach hand [userlist *] {
                setchaninfo $hand $c $a
        }
        putserv "NOTICE $n :Mensage sent: $a"
}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well maybe it's just me, or all this really doesn't make any sense

the only sane purpose of what you've said so far would be to somehow indicate when a user who is on bot's userlist has joined the channel - but you don't need to mess with chaninfo in order to do that
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

for me it looks like a NOTE script, just with the diffrent it doesnt tell "i have new notes" but just flushs the note, not concerning if the user knows the correct pass or not!? ^-^
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
H
HecKel
Voice
Posts: 23
Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal

Post by HecKel »

yes, that's my ideia :D can u help me?

tnks, HecKel
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

using the chaninfo field for purpose of noticing is lame

you should send out a real note, and notify user onjoin with that note's contents - which implies flagging such notes in some way
Locked