Project

General

Profile

[Script] gcmem irc output 0.1

Added by Mr. BS almost 8 years ago

New parameter -p to command /gcmem to output text to irc channel or query.

For more info about GCMEM, check the FAQ page.

alias gcmem {
  if ($1 == -p) {
    set %ingcmem 2
  }
  .!gcmem
}

on ^*:CLIENTTEXT:Total Memory*:*:{
  var %output = echo -agtc info $prefixsys

  if (%ingcmem) && ($window($active).type isin channel query) {
    %output = msg $active
    .dec -z %ingcmem
  }

  %output $1-
  haltdef
}