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.

Checking if nick is in channel

Old posts that have not been replied to for several years.
Locked
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Checking if nick is in channel

Post by Darkj »

Now I know that you can check if people are ops and voice etc, but is there an easy way to check if a user is in the channel?

I have a request system, and I want the bot to message the user (if in the channel), if the request is getting done.

Thanks
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: Checking if nick is in channel

Post by YooHoo »

Darkj wrote:Now I know that you can check if people are ops and voice etc, but is there an easy way to check if a user is in the channel?
.channel #yourchannel gives complete channel occupany with a plethora of useful information.
Try .help all, there is an amazing amount of information stored in every eggdrop's help directory.
:mrgreen:
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

You didn't answer my question. I was asking about the TCL code to do this. I'm aware of help files, i'm not a moron. No need for useless flames.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

onchan <nickname> [channel]
Returns: 1 if someone by that nickname is on the specified channel (or any channel if none is specified); 0 otherwise
next time if u are so aware of it read it first or check it at least :p
XplaiN but think of me as stupid
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Darkj wrote:You didn't answer my question. I was asking about the TCL code to do this. I'm aware of help files, i'm not a moron. No need for useless flames.
My apologies, i never insinuated you were a moron at all, but rather I thought to help you answer your question. :wink:
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

You know, this is what I hate about these boards. The fact that when anyone comes here and asks a simple question like that, you get people that turn around and give stupid answers.

Is it really hard to just provide a quick example right off the bat? Don't you remember when you were learning and needed the same kind of help and didn't get it?

Grow up people.

PS Thanks Ofloo, worked perfectly.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Darkj wrote:You know, this is what I hate about these boards. The fact that when anyone comes here and asks a simple question like that, you get people that turn around and give stupid answers.

Is it really hard to just provide a quick example right off the bat? Don't you remember when you were learning and needed the same kind of help and didn't get it?

Grow up people.

PS Thanks Ofloo, worked perfectly.
You know what I hate about these boards, is when people ask for help, and then are ingrateful for the time others invest in trying to help, even if it is the wrong solution.

My advice to you, is if you don't want people to attempt to try to help you, be it wrong or not, next time, don't bother asking.
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

PS Thanks Ofloo, worked perfectly.
Pay attention :)
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

Oh and, after doing some research, the stuff that was first said to help was pretty much useless. No where can I find anything about "onchan" in those two areas.

Also, I did check the TCL guide, but I was being a moron and using a search, i had my mind stuck on mirc for some reason and was only able to thing of isin $chan or something.

So my original point still stands. Just get to the point when helping, don't always refer to the manual or whatever.

Thats all I have to say.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Darkj wrote:Oh and, after doing some research, the stuff that was first said to help was pretty much useless. No where can I find anything about "onchan" in those two areas.
So for him providing you with an incorrect answer you get all whiny like a baby without his bottle.. That explains it, sorry for thinking you were out of line. :roll:
Darkj wrote: Also, I did check the TCL guide, but I was being a moron and using a search, i had my mind stuck on mirc for some reason and was only able to thing of isin $chan or something.

So my original point still stands. Just get to the point when helping, don't always refer to the manual or whatever.
So, I'm the one who needs to pay attention, yet you are unable to actually read documentation.... Again, my complete apologies for your own laziness and incompetence.

If someone directs you to another place for help, it's because there is no point in reiterating something that has already been documented elsewhere, as it would be impractical... But of course, those that are lazy will of course think otherwise.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Darkj wrote:Is it really hard to just provide a quick example right off the bat? Don't you remember when you were learning and needed the same kind of help and didn't get it?
Grow up people.
When a simplistic question is asked, and the topic has been covered thousands of times, giving a person a hint and steering them in the correct direction is the best way to help. If your child whines and sniffles about his math homework, do you help him to understand how to solve the problem himself, or would you just give them the answer, knowing full well that they won't learn a damn thing if given answers on a silver platter?

Directing people to first read the documentation that comes with every eggdrop (and answers damn near every single question you could possibly have) is the absolute best way to help, because it makes them open up their eyes, and do something for themselves....and hopefully, if the stars are in alignment, the person will learn something useful by themselves.

As for your rude comments towards people who were simply trying to help you answer your question (because, I might add, you were too lazy to read the documentation yourself), I will be sure to ignore your posts in the future... who really wants to have some lame n00b bitch and cry about the injustice of it all? rtfm :mrgreen:
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

<deleted>

Was a little rude, got my senses.
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

Oh, fyi, this was my question:
Now I know that you can check if people are ops and voice etc, but is there an easy way to check if a user is in the channel?

I have a request system, and I want the bot to message the user (if in the channel), if the request is getting done.
And this was the moronic answer I was given that didn't even HELP.
.channel #yourchannel gives complete channel occupany with a plethora of useful information.
Try .help all, there is an amazing amount of information stored in every eggdrop's help directory.
Now, that answer is crap, I did that, yes I confessed about being a moron through the help file. I have read it, but there is alot there, and I have a hard time remembering everything there. My life does not revolve around learning TCL. Its a side thing.

Also, this will be the last time I post here. The people here are too immature and moronic and its just a waste of my time. I know this means nothing to everyone, but whatever, F U C K these boards cuz they BLOW.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Darkj wrote:Also, this will be the last time I post here.
Thank God for small favors.
moving on...
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

YooHoo wrote:
Darkj wrote:Also, this will be the last time I post here.
Thank God for small favors.
moving on...
:)
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
Locked