Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6817511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:03:52+00:00 2026-05-26T21:03:52+00:00

I have a command that I want to restrict only to certain ranks. I’m

  • 0

I have a command that I want to restrict only to certain ranks. I’m using unreal3.2.6 IRC.

I read this: enter image description here

But I still am not sure what I can do to check the users rank.

I want to see if the user is a “Voice” or higher. What could look up a user, and what can I do to check if they are a voice or higher? What are the values for each rank in order for me to check?

I’m only trying to check the current channel, not the whole IRC server.

For example:

When a user tries to execute a command !roll (Rolls a dice) and are not a Voice or higher, nothing would happen.

if (data.Equals("!roll"))
{
    //Check if user contains (@,+,etc?) 
    if(nickname.StartsWith(@..+..etc))
    {
        roll(nickname);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:03:53+00:00Added an answer on May 26, 2026 at 9:03 pm

    Instead of querying the user with a WHOIS command, you need to query the applicable channel with the NAMES command.

    From RFC 2812 – Internet Relay Chat: Client Protocol:

    3.2.5 Names message

    Command: NAMES

    Parameters: [ <channel> *( "," <channel> ) [ <target> ] ]

    By using the NAMES command, a user can list all nicknames that are visible to him. For more details on what is visible and what is not, see "Internet Relay Chat: Channel Management" [IRC-CHAN]. The <channel> parameter specifies which channel(s) to return information about. There is no error reply for bad channel names.

    If no <channel> parameter is given, a list of all channels and their occupants is returned. At the end of this list, a list of users who are visible but either not on any channel or not on a visible channel are listed as being on ‘channel’ "*".

    If the <target> parameter is specified, the request is forwarded to that server which will generate the reply.

    Wildcards are allowed in the <target> parameter.

    Numerics:

    ERR_TOOMANYMATCHES ERR_NOSUCHSERVER
    RPL_NAMREPLY RPL_ENDOFNAMES

    Examples:

    NAMES #twilight_zone,#42 ; Command to list visible users on #twilight_zone and #42

    NAMES ; Command to list all visible channels and users

    Quering a channel with the NAMES command will yield these two replies:

    353 RPL_NAMREPLY

    "( "=" / "*" / "@" ) <channel>
    :[ "@" / "+" ] <nick> *( " " [ "@" / "+" ] <nick> )

    • "@" is used for secret channels, "*" for private channels, and "=" for others (public channels).

    as well as:

    366 RPL_ENDOFNAMES

    "<channel> :End of NAMES list"

    You can split the list of nicks on the whitespace character, and determine whether the first character of a nick is a mode identifier (+, @, etc..) or an alphanumeric character (which implies that the user has no special mode on the channel.)

    The IRC standard only defines + as a voiced user and @ as a channel operator, but other servers can be known to use special characters like ~ for channel owner and & for "super" channel operators. As a general rule, you could simply check to see that the user has any channel mode (other than the default) to verify that they’re voiced or better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a command that I want to run on machine B from machine
I have a command-line PHP script that runs a wget request using each member
I have a database command that populates a DataTable I want to get the
I have the same command that I want to use for two controls on
I have this command that I run every 24 hours currently. find /var/www/html/audio -daystart
I have 16-bit command line tools that I want to run on Windows 7
I have a sed command that I want to run on a huge, terrible,
I have a Perl command-line script that I want to convert to a rich.
I have a command that should take less than 1 minute to execute, but
We have tests using WatiN that we want to run on our CruiseControl.NET server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.