Mirc code to Spell check before adding variable -
on *:text:@btag*:#: { if ( ## isin $2 ] { set %tag. [ $+ [ $nick ] ] $2 { describe # $nick has saved battletag } else { describe # $nick $+ , please enter real btag } }
this code have.
what require code @ text , save variable if contains symbol (#) hash tag.
i finding hard code hashtag (#) part of coding language...
lmk guys can me
'#' char in mirc remote code evaluate channel event fired from.
when want express explicitly hash tag character should use $chr(35), 35 hashtag ascii number.
the code below check:
if in channel user wrote @btag some-text-contains-#-char
, if so, save inside tag-user variable word contained #hash tag. send him has saved...
else send him nick, please enter..
code
on *:text:@btag*:#: { if ($chr(35) isin $2) { set %tag. [ $+ [ $nick ] ] $2 describe # $nick has saved battletag } else { describe # $nick $+ , please enter real btag } }
the code isn't perfect , work also, when user write following lines:
@btagbla some-text-contains-#-char
@btagsometext some-text-contains-#-char
, on.. solve it, should change event definition to
on *:text:@btag *:#: {
Comments
Post a Comment