mIRC Home    About    Download    Register    News    Help

Print Thread
#146872 09/04/06 10:13 PM
Joined: Apr 2006
Posts: 43
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2006
Posts: 43
Ok lets say the words "<nick> has joined the game" appea.
How would i do it so if the nick is on a file for it to msg chan saying like User is on join.txt or w/e

#146873 09/04/06 10:27 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
Ok lets say the words "<nick> has joined the game" appea.
How would i do it so if the nick is on a file for it to msg chan saying like User is on join.txt or w/e


what does a user do to join?
What do you expect to have posted besides the user has joined the game?
what do you think will be in the text file, and hows does that relate to someone joining the game?

#146874 09/04/06 10:34 PM
Joined: Apr 2006
Posts: 43
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2006
Posts: 43
Ok sorry for that poor description...

When ever my servers bot says:
"<nick> has joined the game"
and on <nick> is a differnt nick

I was it to read join.txt and if the nick on
"<nick> has joined the game"
is on the text it would message the channel with "user is on list"

#146875 09/04/06 11:59 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
That's still pretty vague, but I think this is what you're asking for. I don't know how your code is structured, so I leave it to you to integrate the following:

...
window -h @joins
loadbuf @joins join.txt
if ($fline(@joins,$nick,1,1)) msg $chan user is on list
window -c @joins
...


Link Copied to Clipboard