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.

flag except

Old posts that have not been replied to for several years.
Locked
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

flag except

Post by ranny »

Hello all,

I will want that if a user who join a channel is in the userlist , egg writes yes else no.(for example)
i tested

Code: Select all

 if [validuser $nick]
but it's not that ??

Thanks for help.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

bind join - * foo

proc foo {nick uhost handle chan} {
 if [validuser $handle] {
  putserv "PRIVMSG $chan :yes"
 } {
  putserv "PRIVMSG $chan :no"
 }
}
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

as long as the the user are on a hostmask that the bot recognize then the irc nick wont matter.
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

Post by ranny »

hello,

i tested

Code: Select all

if [validuser $handle]
but it's same result. that doesn't function for all users???

:(
Locked