Coders-IRC


IRC for Coders

Ban users via IP


image

on *:ban:#:{
  set %banned $2-
  if ($bnick != $null) && ($bnick != $me) && ($ialchan(%banned,#,0) == 0) { kick # $bnick BANNED | return }
  if ($gettok($address($me,2),2,64) isin $ialchan(%banned,#,1)) { halt | return }
  else {
    set %totalz $ialchan(%banned,#,0)
    :start
    inc %lqlq
    if (%lqlq > %totalz) { goto end | return }
    else {
      kick # $ialchan(%banned,#,%lqlq).nick BANNED
      goto start
    }
    :end
    unset %lqlq
    unset %totalz
  }
}

Expand


Read More

Eggdrops detection


image

on !*:join:#:{ set %chan # | .ctcp $nick VERSION }
on !*:ctcpreply:VERSION*:{
  if *eggdrop* iswm $1- {
    kick %chan $nick Eggdrops are not allowed $+ $chr(13) $+ mode %chan +b $wildsite
  }
}

Expand


Read More

How do I connect to rooms using IRC Client?


image

order to authenticate an account on the Chat Network using an IRC client, you first must create an account and join a room with it using the web chat. Then you can connect with your IRC client and authenticate using the following structure.

on ^*:logon:*: {
.raw AUTHTYPE IRCWX1
.raw CLIENTMODE cd2
.raw USER $me $me $me : My Connection
.raw LOGINH <email address> <password in md5 format>
}

ircWx using % in room names. ie: %#channelname. ircWx also supports spaces in channel names. Spaces are replaced by \b in IRC Clients. ie: %#My\bChannel

cd2 is for basic connections. cd1 requires a socket connection and edits to localwrite

ircWx uses [style] codes. You can strip them with the following regsubex

$regsubex($1-, /\[(?:style\x20.*?|/style)\]/gi,$null)

Expand


Read More