Jump to content
Sign in to follow this  
chain

Dumbass

Recommended Posts

# This is a better version of the /ignore usage. It will allow you to seill see that the user in question interacts
# in the channel, without having to see his dumb spam in the channel. It's pretty useful when you don't play Trivia
# but you like to be in your friend's channel. Or when there is annoying talking bots that think they are funny.
# This will show something like that in the channel: <CriptoSiD> ***************
# There is also a window called @dumbass that will still display the text they said, just in case you want to know.
#
# version 1: First build for text and notices. I don't see the point of hiding join/part/quits. *yet*
# Feb 2019  I will also add right click menu and a list of hostnames that are in this list. .ini file usage is
#                  in my opinion the best way to store small amounts of data. If you have more then 10 people
#                  in your ignore list, you probably need to close your client for a month or 2.
#

#########################################################################
 
 
on ^*:text:*:#:{
  if ($readini(dumbass\list.ini,$mknickfn($nick),$network) {
    if (!@dumbass) { window -nek @dumbass }
    aline -p 0 @dumbass $timestamp This dumbass said something in $chan
    aline -p 0 @dumbass $timestamp $+(<4,$nick,>) $1-
    haltdef | echo $chan $+(<4,$nick,>) $str(*,15)
  }
}
on ^*:NOTICE:*:*:{
  if (!@dumbass) { window -nek @dumbass }
  aline -p 0 @dumbass $timestamp This dumbass sent you a notice
  aline -p 0 @dumbass $timestamp $+(<4,$nick,>) $1-
  haltdef
  echo $chan $+(<4,$nick,>) $str(*,15)
}
 
alias add.dumbass {
  writeini dumbass\list.ini $mknickfn($1) $network $address($1,2)
  aline -p @dumbass $+([,$fulldate,]) $+([14,$network,]) Added $+(7,$1,) to dumbass list.
  echo -at $+([4,DumbAss,]) Added $+(7,$1,) to dumbass list.
}
alias del.dumbass {
  remini dumbass\list.ini $mknickfn($1) $network $address($1,2)
  aline -p @dumbass $+([,$fulldate,]) $+([14,$network,]) Removed $+(7,$1,) from dumbass list.
  echo -at $+([4,DumbAss,]) Removed $+(7,$1,) from dumbass list.
}
 
on *:START:{
  if (!$window(@Dumbass)) {
    window -nek @dumbass
    aline -p @dumbass [dumbass.mrc] Script loaded correctly! version 1
    aline -p @dumbass [dumbass.mrc] Creating directory $mircdirdumbass/
    aline -p @dumbass [dumbass.mrc] To see the manual commands with this script, type: /dumbass
    aline -p @dumbass [dumbass.mrc] For help about this script join #social on undernet and ask Seb
  }
}
menu nicklist {
  [Dumbass.mrc]
  .Add $$1:add.dumbass $$1
  .Remove $$1:del.dumbass $$1
}
 
menu channel {
  [Dumbass.mrc]
  .View list:list.dumbass
}
 
alias list.dumbass {
  if ($ini(dumbass\list.ini,0) == $null) { echo -a 14[4Dumbass14] List Empty | halt }
  var %o = 1
  while (%o <= $ini(dumbass\list.ini,0)) {
    aline -p @dumbass 14[4Dumbass14] $ini(dumbass\list.ini,%o)
    inc %o
  }
}

By: SeB

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...