Results 1 to 3 of 3

Thread: irc client development - user tracking question / data types?

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    irc client development - user tracking question / data types?

    I was wondering what the best way would be for me to keep track of the channels the client has joined and the users ( + their status - voiced, opped etc) in each channel

    I'm new to .net so i'm unsure as to how to do this, suggestions would be great

  2. #2

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    bump

  3. #3
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    I ran into a situation similar to this a little while ago.. what i would do is make up a namespace for Channels.

    in that namespace, have a class that is called Channels, which inherits the collection object, and make my own add/remove/find kind of stuff..

    beside that class you could have a class called Channel which will define an object type for each channel and will hold info like channel name, creator, topic, etc...

    then inside that channel class, you could put a class called Users which also inherits collection object and then beside it (still inside the Channel class) a class called User, which defines a user...

    this may sound quite confusing, and i don't know it if is exactly proper, but i did something like this, and it seems to work fairly well..

    so the end result is like this:

    VB Code:
    1. Namespace Channels
    2.        Class Channels (Inherits Collection)
    3.               Class Users (Inherits Colletion)
    4.               Class User (Defines an object to be stored in Users collection)
    5.        Class Channel (Defines an object to be stored in the Channels Collection)

    get what i mean?
    Last edited by Redth; May 28th, 2003 at 02:58 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width