[Techtalk] Auto-join invite-only channels in xchat

Valerie Henson val.henson at gmail.com
Thu May 31 07:12:38 UTC 2007


Hi folks,

Recently I've been experimenting with invitation-only IRC channels,
which require you to request an invitation before you can join.  One
of the problems I ran into was auto-joining an invite-only channel
using xchat.  I first tried this:

/msg nickserv identify <password>
/msg chanserv invite #invite-only
/join #invite-only

Unfortunately, the invite command returns right away, and the join
command would be issued before ChanServ finished processing the
invitation request, and I would get:

--- Cannot join #invite-only (Channel is invite only).
--- You have been invited to #invite-only by ChanServ (irc0.linuxchix.org)

A lot of googling and reading docs revealed a couple of out of date
scripts which didn't look like they would do the right thing or were
in Perl or had some other major problem. (Yes, Perl is a major problem
in my book.) So I came up with a hack: after issuing the invite
command, issue another command to ChanServ and wait for it to
complete, with the assumption that ChanServ is single-threaded and
can't process the second command until it finishes processing the
invitation command.  And it works!  I thought I would share it with
y'all.

/msg nickserv identify <password>
/msg chanserv invite #invite-only
/msg chanserv info #invite-only
/join #invite-only

More elegant solutions welcomed.

-VAL


More information about the Techtalk mailing list