ermm I think the above part of
on *:text:**:#: {
if $1 != $me $+ ? { halt }
is a little bit hairy
why not just use:
alias away { .scon -a away $iif(!$1,AFK,$1-) | set %reason. [ $+ [ $network ] ] $iif(!$1,AFK,$1-) | set %away.1. [ $+ [ $network ] ] $ctime | set %awayscript. [ $+ [ $network ] ] on | amsg I am now away. $1- $+ . }
alias back { if (%awayscript. [ $+ [ $network ] ] == on) { .scon -a away | amsg I am now back from $awaymsg $+ , I was gone for: $duration($awaytime) | unset %reason. [ $+ [ $network ] ] | unset %away.1. [ $+ [ $network ] ] | set %awayscript. [ $+ [ $network ] ] off } }
on *:TEXT:$( * $+ $me $+ * ):#: {
if (%awayscript. [ $+ [ $network ] ] == on) && (%flood [ $+ [ $address($nick,2) ] ] != on) {
.notice $nick I am currently away. Reason: %reason. [ $+ [ $network ] ] $+ . I have been away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
set -u60 %flood [ $+ [ $address($nick,2) ] ] on
}
}
on *:TEXT:*:?: {
if (%awayscript. [ $+ [ $network ] ] == on) && (%flood [ $+ [ $address($nick,2) ] ] != on) {
.msg $nick I am currently away. Reason: %reason. [ $+ [ $network ] ] $+ . I have been away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
set -u60 %flood [ $+ [ $address($nick,2) ] ] on
}
}
And it will work across multiple networks.
This is just silly, why add something if you don't want people to add it ? Other people with other ulterior motives will now copy and paste this script to use on innocent people, shame on you Diamond. When you tell people not to eat cookie's from the cookie jar, what do they end up doing ? Btw that is not really a hack, it just changes a few things which can be so easily undone by changing your details in your chat client and once connected by using
/ns recover nick
and
/ns release nick
Changing email is not that important unless you use an O-line and setting language to 1 sets english, I think I would battle far more with greek than english lol. With 5 lines I could do a much better hack, but I am not pasting it so nananana "suffer"
This is just plain silly, please delete
What's up with all the tags ? Please keep the Tags script specific so it helps people search accurately what they are looking for.
No need to have the "/" command prefix you can just leave it out or use a "." instead to make the command execute silently.
Have a peek of what I did in my away script: http://www.hawkee.com/snippet/5231/
It also seems you don't understand how the -z switch works
I sort of know how the -z switch works I read the help file lol, was just one idea to set jail to 0 but the -z switch unsets it so wasn't sure if you still needed it to be set or not, the above example was just answering Purcell's question.
Otherwise I would have done it like this, which would decrease and unset in 1 second:
var %temp 1
hadd -z $2 jail %temp
Instead of
hadd $2 jail 0
Purcell: I looked at the hash table help file for the first time ever today, so no I cannot help you as I am not skeeled enough, please Read the help file dude and please don't flood, if you have something to say and think of something later on to say, click EDIT and add what you wanted to say with your previous post.
Great script `JoKeR´
I really like the way you use hash tables and just reading through is so cool, and makes understanding hash tables so much easier. Thank you for sharing :-)
Purcell:
See I'm editing my last post ;)
Not to sure with hash tables or how others will do it, just going through quickly I would do summin like
if ($nick isop $chan) || ($nick === YourExactNickname) {
if ($1 == !bust) {
if (!$2) { .notice $nick Syntax: !bust nick | halt }
hadd $2 jail 0
}
}
But not sure how what other ways there are to do this unless you set a variable to 1 and use hadd -z $2 jail %variablename - but that will totally unset it shrugs - Trial and error I guess hey ;)
Good idea to prevent other operators changing modes, depending on the version of services on the IRC server won't "/cs set #channelname mlock +modes" do the same thing ?
A few Pointers:
if ( %lock == $null ) can be written as > if (!%lock) note: no spaces.
also no need for a "/" before the commands you can just write > /mode $chan $+(+,$remove($1,-)) as > mode $chan $+(+,$remove($1,-))
wow thank you so much napa182 - Been reading all about $iif() and it's usage, actually makes alot of sense lol: $iif(Condition_is_met,True,False) <-- Gosh I love it, that definately does make things alot neater and cleaner. Thank you once again napa182. Now I am so amped to see where else I can use $iif()
Thank you rhasttaff Boetie :) /me goes to see what else to do that is useful to mankind.
types in /help what_else_can_we_get_upto and reads
Thank you for the nice rating guys :)
**** Added napa182's suggestion to the snippet