onotice,oper,ghost,release,identify

By CakerX on Oct 19, 2004

simple aliases for making mirc a little more convient and secure.

ghost and release make nickserv infinitely more usefull when dealing with an agressive network of nick takeover bots.

improved onotice command

BitchX style oper password protection, and similar command for nickserv identify.

NOTE: this is a snippet of commands designed to as seamlessly as possible replace the mIRC/lack of mIRC commands and make up for small short commings in mIRC. If you want popups, feel free to code them yourself. ```mirc /onotice { var %command var %numops $nick( #,0,o) var %ntext $1- if ( -e == $1 ) { %command = .encode -n | %ntext = $2- } else { %command = .notice } var %i 1 :crunch if ( %i <= %numops ) { %command $nick(#, %i ,o) @ $+ $chan $+ : %ntext %i = $calc( %i + 1 ) } else { goto end } goto crunch :end echo -q -@ $+ $chan $+ : %ntext $+ - } /oper { var %user var %pass var %encode if ( $1 == -e ) { %encode = yes if ( $2 == $null ) { echo OPER: you must enter a username | echo - | halt } else { %user = $2 } if ( $3 == $null ) { %pass = $$?*="Enter Oper Password:" } else { %pass = $3 } } elseif ( $1 == $null ) { echo OPER: you must enter a username | echo - | halt } else { %encode = no %user = $1 if ( $2 == $null ) { %pass = $$?*="Enter Oper Password:" } else { %pass = $2 } } if ( %encode == yes ) { .quote oper %user $encode( %pass ,u) } elseif ( %encode == no ) { .quote oper %user %pass } else { echo OPER:ERROR | return 1 } } /ghost { ; use as /ghost var %2 if ( $2 == $null ) { set %2 $$?*="Please Enter Nickserv Password" } else { set %2 $2 } .quote nickserv ghost $1 %2 nick $1 .quote nickserv identify %2 } /release { ;same as ghost only with ns release var %2 if ( $2 == $null ) { set %2 $$?*="Please Enter Nickserv Password" } else { set %2 $2 } .quote nickserv release $1 %2 nick $1 .quote nickserv identify %2 } /identify { if ( $1 == $null ) { .quote ns identify $$?*="Enter Nickserv Password" } else { .quote identify $1- } } /away { %atime $time %adate $date %amsg $1- if ( $1 == $null ) { back | halt } else { .quote away ( $+ $1- $+ ) $time $adate ame is away ( $+ $1- $+ ) $time $adate } } /back { if ( $away == $true ) { .quote away ame has returned, gone since %atime %adate for ( $+ %amsg $+ ) } else { echo -a not away, try /away echo -a - } } ```

Comments

Sign in to comment.
xDaeMoN   -  Oct 19, 2004

This is nice. It would be better to put a menu, that\'ll be much easier.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.