/* ############################### ############################### ### IRC Service Commands ### ### For ### ### irc.myhayastan.com ### ### by HaNFMaN-GeR ### ############################### ############################### */ away = 'che'; function yerevan(art) { if (art == 'harutjoin') { if (document.harutform.hanfmanjoin.indexOf != '0') { if (document.harutform.hanfmanjoin.options[document.harutform.hanfmanjoin.selectedIndex].value != 'Other' && document.harutform.hanfmanjoin.options[document.harutform.hanfmanjoin.selectedIndex].value !='Channels') { document.harchat.processJInput('/join '+ document.harutform.hanfmanjoin.options[document.harutform.hanfmanjoin.selectedIndex].value); return true; } } if (document.harutform.hanfmanjoin.indexOf != '0') { if (document.harutform.hanfmanjoin.options[document.harutform.hanfmanjoin.selectedIndex].value == 'Other') { channel = prompt('Channel to join','#mychannel'); if (channel != null) { if (channel.indexOf('#') != -1 ) { channel = '/join '+channel; } else { channel = '/join #'+channel; } document.harchat.processJInput(channel); } } } } if (art == 'harutact') { if (document.harutform.hanfmanact.options[document.harutform.hanfmanact.selectedIndex].value != 'Other' && document.harutform.hanfmanact.options[document.harutform.hanfmanact.selectedIndex].value != 'Actions') { document.harchat.processJInput('/me '+ document.harutform.hanfmanact.options[document.harutform.hanfmanact.selectedIndex].value); } if (document.harutform.hanfmanact.options[document.harutform.hanfmanact.selectedIndex].value == 'Other') { actions = prompt('Action to perform','Smiles innocently'); if (actions != null) { document.harchat.processJInput('/me '+ actions); } } } if (art == 'harutcs') { if (document.harutform.hanfmancs.indexOf != '0') { if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value != 'ChanServ') { if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Register') { password = prompt('Enter Password',''); if (password != null) { desc = prompt('Description of your channel','My Channel'); if (desc != null) { document.harchat.processJInput('/msg ChanServ REGISTER %$C '+ password +' '+desc); } } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Identify') { password = prompt('Enter Password',''); if (password != null) { document.harchat.processJInput('/msg ChanServ IDENTIFY %$C '+ password); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Soplist') { harc = confirm('This will list the SOP entries on this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg ChanServ SOP %$C LIST'); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Sopadd') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ SOP %$C ADD '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Sopdel') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ SOP %$C DEl '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Aoplist') { harc = confirm('This will list the AOP entries on this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg ChanServ AOP %$C LIST'); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Aopadd') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ AOP %$C ADD '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Aopdel') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ AOP %$C DEl '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Hoplist') { harc = confirm('This will list the HOP entries on this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg ChanServ HOP %$C LIST'); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Hopadd') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ HOP %$C ADD '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Hopdel') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ HOP %$C DEl '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Voplist') { harc = confirm('This will list the VOP entries on this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg ChanServ VOP %$C LIST'); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Vopadd') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ VOP %$C ADD '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Vopdel') { nickname = prompt('Enter Nickname',''); if (nickname != null) { document.harchat.processJInput('/msg ChanServ VOP %$C DEl '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Akicklist') { harc = confirm('This will list the Akick entries on this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg ChanServ AKICK %$C LIST'); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Akickadd') { nickname = prompt('Enter Wildcard Mask','Nickname*!*@*'); if (nickname != null) { document.harchat.processJInput('/msg ChanServ AKICK %$C ADD '+ nickname); } } if (document.harutform.hanfmancs.options[document.harutform.hanfmancs.selectedIndex].value == 'Akickdel') { nickname = prompt('Enter wildcard mask','Nickname*!*@*'); if (nickname != null) { document.harchat.processJInput('/msg ChanServ AKICK %$C DEl '+ nickname); } } } } } if (art == 'harutns') { if (document.harutform.hanfmanns.indexOf != '0') { if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value != 'NickServ') { if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'Register') { password = prompt('Enter Password',''); if (password != null) { email = prompt('Enter you E-Mail Adress','') if (email != null) { document.harchat.processJInput('/msg NickServ REGISTER '+ password +' ' +email); } } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'Identify') { password = prompt('Enter Password',''); if (password != null) { document.harchat.processJInput('/msg NickServ IDENTIFY '+ password); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'protecton') { harc = confirm('This will Set the Protection of Your Nick on are you sure?'); if (harc != false) { document.harchat.processJInput('/msg NickServ SET PROTECTION ON'); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'protectoff') { harc = confirm('This will Set the Protection of Your Nick off are you sure?'); if (harc != false) { document.harchat.processJInput('/msg NickServ SET PROTECTION OFF'); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'noopon') { harc = confirm('This will Set the No Op of Your Nick on are you sure?'); if (harc != false) { document.harchat.processJInput('/msg NickServ SET NOOP ON'); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'noopoff') { harc = confirm('This will Set the No Op of Your Nick off are you sure?'); if (harc != false) { document.harchat.processJInput('/msg NickServ SET NOOP OFF'); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'Ghost') { password = prompt('Enter Nickname',''); if (password != null) { document.harchat.processJInput('/msg NickServ GHOST '+ password); } } if (document.harutform.hanfmanns.options[document.harutform.hanfmanns.selectedIndex].value == 'drop') { harc = confirm('This will drop the registration of this channel are you sure?'); if (harc != false) { document.harchat.processJInput('/msg NickServ DROP'); } } } } } if (art == 'harutms') { if (document.harutform.hanfmanms.indexOf != '0') { if (document.harutform.hanfmanms.options[document.harutform.hanfmanms.selectedIndex].value != 'MemoServ') { if (document.harutform.hanfmanms.options[document.harutform.hanfmanms.selectedIndex].value == 'Read') { message = prompt('Enter number of Message','1'); if (message != null) { document.harchat.processJInput('/msg MemoServ Read '+ message); } } if (document.harutform.hanfmanms.options[document.harutform.hanfmanms.selectedIndex].value == 'Readlast') { harc = confirm('This will Read the last message are you sure?'); if (harc != false) { document.harchat.processJInput('/msg MemoServ Read last'); } } if (document.harutform.hanfmanms.options[document.harutform.hanfmanms.selectedIndex].value == 'Send') { nick = prompt('Enter Nickname',''); if (nick != null) { message = prompt('Enter your Message',''); if (message != null) { document.harchat.processJInput('/msg MemoServ Send '+ nick +' '+ message); } } } if (document.harutform.hanfmanms.options[document.harutform.hanfmanms.selectedIndex].value == 'Delete') { message = prompt('Enter number of Message','1'); if (message != null) { document.harchat.processJInput('/msg MemoServ Del '+ message); } } } } } if (art == 'harutnl') { if (document.harutform.hanfmannl.indexOf != '0') { if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value != 'Nicklist') { if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Op') { harc = confirm('This will Give Op are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C +o %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Deop') { harc = confirm('This will Give Deop are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C -o %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Halfop') { harc = confirm('This will Give Halfop are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C +h %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Dehalfop') { harc = confirm('This will Give Dehalfop are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C -h %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Voice') { harc = confirm('This will Give Voice are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C +v %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Devoice') { harc = confirm('This will Give Devoice are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C -v %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Kick') { harc = confirm('This will Kick are you sure?',''); if (harc != false) { document.harchat.processJInput('/kick %$C %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Kickwr') { reason = prompt('Enter Reason for Kick','www.Haykazun.com Kick'); if (reason != null) { document.harchat.processJInput('/kick %$C %$HN '+ reason); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Ban') { harc = confirm('This will Ban are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C +b %$HN '); } } if (document.harutform.hanfmannl.options[document.harutform.hanfmannl.selectedIndex].value == 'Kickban') { harc = confirm('This will KickBan are you sure?',''); if (harc != false) { document.harchat.processJInput('/mode %$C +b %$HN '); document.harchat.processJInput('/kick %$C %$HN www.Haykazun.com Kick '); } } } } } if (art == 'harutmc') { if (document.harutform.hanfmanmc.indexOf != '0') { if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value != 'Misc') { if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'awayon') { if (away == 'che') { message = prompt('Enter Away Message',''); if (message != null) { document.harchat.processJInput('/away ' + message); document.harchat.processJInput('/me is AWAY \('+message+'\).'); away = 'ha'; } } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'awayoff') { if (away == 'ha') { message = prompt('Enter Away Message',''); if (message != null) { document.harchat.processJInput('/away'); document.harchat.processJInput('/me is BACK from being AWAY \('+message+'\).'); away = 'che'; } } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'whois') { harc = confirm('This will Whois a User are you sure?',''); if (harc != false) { document.harchat.processJInput('/whois %$HN '); } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'ctcpping') { harc = confirm('This will PING a User are you sure?',''); if (harc != false) { document.harchat.processJInput('/ctcp %$HN PING '); } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'ctcpversion') { harc = confirm('This will get Version are you sure?',''); if (harc != false) { document.harchat.processJInput('/ctcp %$HN VERSION '); } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'ctcptime') { harc = confirm('This will get TIME are you sure?',''); if (harc != false) { document.harchat.processJInput('/ctcp %$HN TIME '); } } if (document.harutform.hanfmanmc.options[document.harutform.hanfmanmc.selectedIndex].value == 'clearsc') { harc = confirm('This will Clear your Chat Screen are you sure?',''); if (harc != false) { document.harchat.processJInput('/clear '); } } } } } } function jpit(art) { if (art == 'clown') { document.harchat.processJInput('§:o)'); } if (art == 'cry') { document.harchat.processJInput(':~('); } if (art == 'evil') { document.harchat.processJInput('>:)'); } if (art == 'winkface') { document.harchat.processJInput(';)'); } if (art == 'tonque') { document.harchat.processJInput(':P'); } if (art == 'smile') { document.harchat.processJInput(':)'); } if (art == 'frown') { document.harchat.processJInput(':('); } if (art == 'kiss') { document.harchat.processJInput(':*'); } }