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.

[SOLVED] Flag user information on join #

Old posts that have not been replied to for several years.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Oops, a typo there :mrgreen:

Code: Select all

# The configuration 
set flags(owner) "A Bot Owner Has Entered The Channel!" 
set flags(master) "A Bot Master Has Entered The Channel!" 
set flags(op) "A Bot Op Has Entered The Channel!" 
set flags(halfop) "A Bot Halfop Has Entered The Channel!" 
set flags(cowner) "A Channel Owner Has Entered The Channel!" 
set flags(cmaster) "A Channel Master Has Entered The Channel!" 
set flags(cop) "A Channel Op Has Entered The Channel!" 
set flags(chalfop) "A Channel Halfop Has Entered The Channel!" 

bind JOIN - * flags:join 

proc flags:join { nickname hostname handle channel } { 
global flags 
if {[matchattr $handle n]} { putquick "PRIVMSG $channel :$flags(owner)" 
} elseif {[matchattr $handle m]} { putquick "PRIVMSG $channel :$flags(master)" 
} elseif {[matchattr $handle o]} { putquick "PRIVMSG $channel :$flags(op)" 
} elseif {[matchattr $handle l]} { putquick "PRIVMSG $channel :$flags(halfop)" 
} elseif {[matchattr $handle |n $channel]} { putquick "PRIVMSG $channel :$flags(cowner)" 
} elseif {[matchattr $handle |m $channel]} { putquick "PRIVMSG $channel :$flags(cmaster)" 
} elseif {[matchattr $handle |o $channel]} { putquick "PRIVMSG $channel :$flags(cop)" 
} elseif {[matchattr $handle |l $channel]} { putquick "PRIVMSG $channel :$flags(chalfop)" 
} 
}
User avatar
Stealthx
Halfop
Posts: 68
Joined: Fri Oct 01, 2004 3:37 am
Location: StealthBox

Post by Stealthx »

arcane wrote:
Stealthx wrote: Firstly thanks for your code! But I've tried it, it doesn't seems to work for the first time due to some error so I've changed this "bind JOIN-" to "bind JOIN" but still it doesn't work. I've added a new user and chatter +n to the user but when the user joined, nothing happens.
hehe... you should have changed "JOIN-" to "JOIN -" :)
Thanks alot, it's work well now. But how do I set those on-join message like:

<bot> [ usernick ] have just joined the channel.

etc.

<bot> [ egghelp ] have just joined the channel.

whereby "egghelp" is my nick in IRC. I've tried $nick but it appear to be the bot nick.
+ Stealth Box +
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

On another note Stealthx, When you see an error on your partyline it useally shows you quite clearly what you need to change to make it work.
Don't go around deleting stuff or changing the code if you don't know what the outcome will be :)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

proc flags:join { nickname hostname handle channel } { 
global flags 
if {[matchattr $handle n]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(owner)" 
} elseif {[matchattr $handle m]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(master)" 
} elseif {[matchattr $handle o]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(op)" 
} elseif {[matchattr $handle l]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(halfop)" 
} elseif {[matchattr $handle |n $channel]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(cowner)" 
} elseif {[matchattr $handle |m $channel]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(cmaster)" 
} elseif {[matchattr $handle |o $channel]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(cop)" 
} elseif {[matchattr $handle |l $channel]} { putquick "PRIVMSG $channel :\[ $nickname \] $flags(chalfop)" 
} 
} 
User avatar
Stealthx
Halfop
Posts: 68
Joined: Fri Oct 01, 2004 3:37 am
Location: StealthBox

Post by Stealthx »

Thanks alot, it's works perfectly great right now. :mrgreen:
+ Stealth Box +
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Stealthx wrote:however when I set a channel +greet on and I joined the channel, it doesn't greet me. Why is that so?
Setting a greeting via Command Console and cycling immediately won't trigger a greeting as it's timed; you have to be absent from the channel for a short period and then re-enter.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Stealthx
Halfop
Posts: 68
Joined: Fri Oct 01, 2004 3:37 am
Location: StealthBox

Post by Stealthx »

Yes, it's work perfectly again. Thanks alot! :mrgreen:
+ Stealth Box +
Locked