mIRC Home    About    Download    Register    News    Help

Print Thread
how to know if channel is registered or not #172267 08/03/07 04:09 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
how to know if channel is registered or not

--

is there a way to do this using raws or if not how to...


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172268 08/03/07 04:24 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Check the channel modes. The mode you're looking for is r (note: this is different from R).

This is a standard setting for most (if not all) IRCd's

If you're wanting to get the information without being in the channel, I believe this is possible, however the website that has the information that I'm requiring to confirm this is currently experiencing trouble, so I'm unable to look up the information.

Re: how to know if channel is registered or not [Re: RusselB] #172271 08/03/07 06:53 AM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You can try using /cs info #channel, if you're on a network using Unreal IRCd, or GameSurge.


Those who can, cannot. Those who cannot, can.
Re: how to know if channel is registered or not [Re: Kardafol] #172282 08/03/07 11:18 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
yes but how about using a code to do this can it be done?


learn learn learn
Re: how to know if channel is registered or not [Re: RusselB] #172283 08/03/07 11:20 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
hehe don`t understand


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172288 08/03/07 01:04 PM
Joined: Dec 2006
Posts: 3
K
KonstantineX Offline
Self-satisified door
Offline
Self-satisified door
K
Joined: Dec 2006
Posts: 3
if (r isin $chan($chan).mode) { echo $chan registered }
else { echo $chan unregistered }

Re: how to know if channel is registered or not [Re: KonstantineX] #172334 08/03/07 11:14 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
echo $chan $iif(r isincs $chan($chan).mode,Registered,Un-registered)


Re: how to know if channel is registered or not [Re: RusselB] #172346 09/03/07 12:05 AM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
That will only work if he is on the channel.


Those who can, cannot. Those who cannot, can.
Re: how to know if channel is registered or not [Re: learn3r] #172347 09/03/07 12:08 AM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You would use a "on *:notice:*:?: {" event. The nick would usualy be ChanServ, and for gamesurge it will eather say: "#... Information:" followed by several lines, or it will say: "You must provide the name of a channel that exists." or "# has not been registered with ChanServ.".
However, you would need to cut your script in half to do this effectively.


Those who can, cannot. Those who cannot, can.
Re: how to know if channel is registered or not [Re: Kardafol] #172360 09/03/07 12:37 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yes, I know that. I should've put in a little note stating that the code I provided was simply an updated version of the code posted by KonstantineX.

Re: how to know if channel is registered or not [Re: learn3r] #172383 09/03/07 07:53 AM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
The code would depend on what network you will use it. On Undernet, "r" would mean that only users who are logged on to X can join the channel.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: how to know if channel is registered or not [Re: RusselB] #172401 09/03/07 04:59 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
I'm on DALnet server doesn't works...


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172465 10/03/07 06:35 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
it can`t be done..


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172536 11/03/07 07:48 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
For DALnet, /cs info #channelname

You either get information (if it's registered), or you get:

The channel #channelname is not registered.

scripted:
Code:
on 1:notice:*End of Info*:*: echo -a Channel is registered.
on 1:notice:*not registered*:*: echo -a Channel is NOT registered.


I refuse to engage in a battle of wits with an unarmed person. wink
Re: how to know if channel is registered or not [Re: CtrlAltDel] #172538 11/03/07 08:01 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
like I said w/out using server commands...


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172541 11/03/07 08:19 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
even raws come from the server smile


I refuse to engage in a battle of wits with an unarmed person. wink
Re: how to know if channel is registered or not [Re: CtrlAltDel] #172624 13/03/07 01:49 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
how bout w/out using chanserv


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172637 13/03/07 12:32 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You can use:
Code:
if (r isincs $chan(#CHANNEL).mode) {
do stuff
}

But this won't work with all networks, and can return false results on some networks.


Those who can, cannot. Those who cannot, can.
Re: how to know if channel is registered or not [Re: Kardafol] #172660 13/03/07 05:10 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
that's like this from RusselB
Code:
echo $chan $iif(r isincs $chan($chan).mode,Registered,Un-registered)


But gives me error results
Server:DALnet


learn learn learn
Re: how to know if channel is registered or not [Re: learn3r] #172677 13/03/07 09:22 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Because DALnet uses Chanserv which runs as a background service, +r is not applied to channels on DALnet which are registered. It did used to be, but isn't anymore. $chan will not pick up on +r on that network.

People have given you valid solutions for an alternative though, i.e. the on notice events responding to chanserv's messages when infoing a channel. Channel services are not integrally server related though which is why it's not as simple as you wish it to be.

Regards,


Mentality/Chris