I am trying to make a script that lets you swap text from online to offline in another script
here is what i have so far
bind pub o|o !request-online whatgoeshereonline?
bind pub o|o !request-offline whatgoeshereoffline?
proc whatgoeshereonline? {nick host handle channel arg} {
putserv "NOTICE $nick :The status is online."
}
proc whatgoeshereoffline? {nick host handle channel arg} {
putserv "NOTICE $nick :The status is offline."
}
but i want it to do it from one proc so weather i say its online or offline it is allways in one peice of text
bind pub o|o !request-offline/online online/offline
proc online/offline? {nick host handle channel arg} {
putserv "NOTICE $nick :The status is offline/online (whatever it is.)"
}