Project

General

Profile

Script to autojoin the Channel number 3, that is not named in a BanList?

Added by Eduardo Bedoya over 8 years ago

Hi comunity, Im a new of AidIRC, I noted it has a script feature...
Is it possible to autojoin the Channel List, Channel number 3 sorted in descending order by its number of users, that is not named in a BanList?
eg.

IF
BanList = "#polmesa, #sandinia, #mars"

AND
List of Channels AidIRC got using its Channel List
#camelot
#corneria
#polmesa
#sandinia
#rakien
#zoria

THEN script will automatically join on #rakien Channel

is that possible? What script language use AdiIRC? how do I apply it?

Thanks Advanced.


Replies (8)

RE: Script to autojoin the Channel number 3 sort by number of user (descending), that is not any of the Channels named in a BanList - Added by Per Amundsen over 8 years ago

Here is something i quickly threw together, maybe not the most efficient way, type "/joinchan 3" to test.

alias joinchan {
  var %banlist #polmesa #sandinia #mars
  var %channels #camelot #corneria #polmesa #sandinia #rakien #zoria
  var %newlist,%n 0
  while (%n < $gettok(%channels,0,32)) {
    inc %n
    if (!$istok(%banlist,$gettok(%channels,%n,32),32)) {
      %newlist = %newlist $gettok(%channels,%n,32)   
    }
  }

  join $gettok(%newlist,$1,32)
}

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Per Amundsen over 8 years ago

In a channel window, in the Editbox, it could also be added as a menu etc.

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Eduardo Bedoya over 8 years ago

Hi Amundsen,
I created the Script and save it, how I run it? I typed "/joinchan 3" in the main window, and it joined #rakien

But in your script how can I set the values of "var %channels" to be the same the command "TOOLS > Channel List (Alt+L) > Get List" show me when Im connected to irc.chathispano.com
I mean I would like the set the values of "var %channel" to be from this direction: irc.chathispano.com, getting all the channels from there that have more than 300 users.

Thanks Advanced.

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Per Amundsen over 8 years ago

I see, that complicates things a lot, I can try make an example soon.

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Eduardo Bedoya over 8 years ago

Thanks man, please could you give me some links to tutorials or documentation of the AdiIRC scripting language?? Thanks Advanced.

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Per Amundsen over 8 years ago

AdiIRC uses the exact same scripting language as mIRC.

A lot is already documented in the wiki.

You could also check out http://en.wikichip.org/wiki/Introduction_-_mIRC and http://www.mirc.org/mishbox/index.htm

RE: Is it possible to autojoin the Channel List, Channel number 3, that is not named in a BanList? - Added by Eduardo Bedoya over 8 years ago

Thanks Amundsen,

I see, pretty complex indeed, hope some god fella could give a good hint with this one. Thanks man

RE: Script to autojoin the Channel number 3, that is not named in a BanList? - Added by Eduardo Bedoya over 8 years ago

Is there a way to get a List of #channels inside a server?? eg. get a List of the #channels inside irc.chathispano.com? That could allow us to get this script working.

Thanks Advanced.

    (1-8/8)